summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2012-11-08 10:58:57 +0100
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2012-11-08 10:58:57 +0100
commit9730dd493ab3820f052d8303cafbcc5fa2dfce12 (patch)
tree7854df2e35d6fec4e01fdf2238d91f2c3a16ff6a /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites
parentf6ca803992d00591b590418d311d22ff2590e220 (diff)
downloadpdf-over-9730dd493ab3820f052d8303cafbcc5fa2dfce12.tar.gz
pdf-over-9730dd493ab3820f052d8303cafbcc5fa2dfce12.tar.bz2
pdf-over-9730dd493ab3820f052d8303cafbcc5fa2dfce12.zip
Double border workaround
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
index 97b876b0..6764b0ef 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
+++ b/trunk/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);