summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/emulated
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2002-12-18 17:34:19 +0000
committerFelipe Heidrich <fheidric>2002-12-18 17:34:19 +0000
commit3810f49c97f1cc24b55ae6ef05855b7382d37d87 (patch)
tree80298145551735c27dc87606c6f6950114d56872 /bundles/org.eclipse.swt/Eclipse SWT/emulated
parent0c1ecc659b601ebf49f7e256c22e4c8c778da8e2 (diff)
downloadeclipse.platform.swt-3810f49c97f1cc24b55ae6ef05855b7382d37d87.tar.gz
eclipse.platform.swt-3810f49c97f1cc24b55ae6ef05855b7382d37d87.tar.xz
eclipse.platform.swt-3810f49c97f1cc24b55ae6ef05855b7382d37d87.zip
28382
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/emulated')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java
index d98676c9a9..472937c2a6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/coolbar/org/eclipse/swt/widgets/CoolBar.java
@@ -644,11 +644,13 @@ void onPaint(Event event) {
if (!gc.getClipping().intersects(bounds)) continue;
/* Draw separator. */
- gc.setForeground(shadowColor);
- gc.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height - 1);
- gc.setForeground(highlightColor);
- gc.drawLine(bounds.x + 1, bounds.y, bounds.x + 1, bounds.y + bounds.height - 1);
-
+ if (i != 0) {
+ gc.setForeground(shadowColor);
+ gc.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height - 1);
+ gc.setForeground(highlightColor);
+ gc.drawLine(bounds.x + 1, bounds.y, bounds.x + 1, bounds.y + bounds.height - 1);
+ }
+
/* Draw grabber. */
if (!isLocked) {
int grabberTrim = 2;