summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:16:46 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:16:46 +0000
commit5201ddc04f09989b0be856bf005b7ddc19312c81 (patch)
treef3e414814085d3c74ce9feba2a869ca9ec8f220e /pdf-over-gui/src/main/java/at/asit
parentd2cdf73f99cde1bd659fe3388ae7fdf833d43bda (diff)
downloadmocca-5201ddc04f09989b0be856bf005b7ddc19312c81.tar.gz
mocca-5201ddc04f09989b0be856bf005b7ddc19312c81.tar.bz2
mocca-5201ddc04f09989b0be856bf005b7ddc19312c81.zip
Double border workaround
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@233 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
index 97b876b0..6764b0ef 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
@@ -223,7 +223,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
fd_containerComposite.bottom = new FormAttachment(100);
containerComposite.setLayoutData(fd_containerComposite);
- Composite controlComposite = new Composite(containerComposite, SWT.NONE);
+ final Composite controlComposite = new Composite(containerComposite, SWT.NONE);
controlComposite.setLayout(new FormLayout());
FormData fd_controlComposite = new FormData();
fd_controlComposite.left = new FormAttachment(0, 20);
@@ -235,6 +235,9 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
@Override
public void paintControl(PaintEvent e) {
+ //Workaround for paint event being called twice initially
+ if (e.x > 0)
+ return;
// e.gc.setForeground();
e.gc.setForeground(Constants.DROP_BORDER_COLOR);
e.gc.setLineWidth(3);