summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets
diff options
context:
space:
mode:
authorGrant Gayed <grant_gayed@ca.ibm.com>2011-11-14 16:13:39 -0500
committerGrant Gayed <grant_gayed@ca.ibm.com>2011-11-14 16:13:39 -0500
commit795366956cb674108ab2225a723afd46205c3f87 (patch)
tree4b035a830b3269340cbc9bac6d6072f58123276c /bundles/org.eclipse.swt/Eclipse SWT Custom Widgets
parentdd86ffaaaf8f13d47a68e3f272fedc0ff7836bac (diff)
downloadeclipse.platform.swt-795366956cb674108ab2225a723afd46205c3f87.tar.gz
eclipse.platform.swt-795366956cb674108ab2225a723afd46205c3f87.tar.xz
eclipse.platform.swt-795366956cb674108ab2225a723afd46205c3f87.zip
paint fixes
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Custom Widgets')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TreeCursor.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TreeCursor.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TreeCursor.java
index 263c3589f8..5b0a0241ca 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TreeCursor.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TreeCursor.java
@@ -623,8 +623,14 @@ void paint(Event event) {
int x = 0;
// Temporary code - need a better way to determine trim
String platform = SWT.getPlatform();
- if (image != null || (orderedIndex > 0 && "win32".equals(platform))) { //$NON-NLS-1$
- x += 2;
+ if (image != null) {
+ if ("win32".equals(platform)) { //$NON-NLS-1$
+ if (orderedIndex > 0) {
+ x += 2;
+ }
+ } else {
+ x += 2;
+ }
}
Point size = getSize();
if (image != null) {