Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover2006-12-05 13:29:07 -0500
committerSteve Northover2006-12-05 13:29:07 -0500
commit32ed251a90824016caeb9c93ce5f51314d971ca5 (patch)
tree32b5599bf2e2d0b210e9dd924c8d9f86dcc744f3
parenta975ef9f91d82b046bdbfc26d01710e99e6e893d (diff)
downloadeclipse.platform.swt-32ed251a90824016caeb9c93ce5f51314d971ca5.tar.gz
eclipse.platform.swt-32ed251a90824016caeb9c93ce5f51314d971ca5.tar.xz
eclipse.platform.swt-32ed251a90824016caeb9c93ce5f51314d971ca5.zip
166793 - Custom-Drawing Selection-Color not working on col = 0 with sorting
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
index f2c06b9c4e..c2120e8cf0 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
@@ -1057,7 +1057,7 @@ LRESULT CDDS_ITEMPREPAINT (int wParam, int lParam) {
} else {
ignoreDrawForeground = ignoreDrawSelection = ignoreDrawBackground = true;
}
- if (!ignoreDrawBackground && clrTextBk != -1) {
+ if (!ignoreDrawBackground && !ignoreDrawSelection && clrTextBk != -1) {
if (count == 0) {
if ((style & SWT.FULL_SELECTION) != 0) {
fillBackground (hDC, clrTextBk, rect);

Back to the top