Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine2001-11-16 19:23:11 +0000
committerVeronika Irvine2001-11-16 19:23:11 +0000
commit73e0e4e8513ab6e96511598486a5652f1b22c3ac (patch)
tree5dc671652b6f3dc873bd1347d5f21055da72d414
parente807fc94794d03ed1804260409a26f1b10a00625 (diff)
downloadeclipse.platform.swt-73e0e4e8513ab6e96511598486a5652f1b22c3ac.tar.gz
eclipse.platform.swt-73e0e4e8513ab6e96511598486a5652f1b22c3ac.tar.xz
eclipse.platform.swt-73e0e4e8513ab6e96511598486a5652f1b22c3ac.zip
*** empty log message ***
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
index 7a4b8f52ad..6f4e45af34 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java
@@ -1299,12 +1299,11 @@ private void updateCloseBar() {
gc.fillRectangle(0, 0, imageHeight, imageHeight);
gc.setForeground(black);
- gc.drawLine(-1, 0, imageHeight - 1, imageHeight);
- gc.drawLine( 0, 0, imageHeight, imageHeight);
- gc.drawLine( 1, 0, imageHeight + 1, imageHeight);
- gc.drawLine(-2, imageHeight, imageHeight - 2, 0);
- gc.drawLine(-1, imageHeight, imageHeight - 1, 0);
- gc.drawLine( 0, imageHeight, imageHeight, 0);
+ int h = (imageHeight /2 )* 2;
+ gc.drawLine( 0, 0, h - 2, h - 2);
+ gc.drawLine( 1, 0, h, h - 1);
+ gc.drawLine( 0, h - 2, h - 2, 0);
+ gc.drawLine( 1, h - 2, h - 1, 0);
gc.dispose();

Back to the top