diff options
author | Steve Northover <steve> | 2005-03-29 03:25:17 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2005-03-29 03:25:17 +0000 |
commit | 2e4c8c8514e0653f5570876871b93fda6fe4932b (patch) | |
tree | 59e3a6649b867f28031fc83500854dd07a62c585 | |
parent | 203ddea40f3cc9c4394b9ba6e9ff55a009bc21f4 (diff) | |
download | eclipse.platform.swt-2e4c8c8514e0653f5570876871b93fda6fe4932b.tar.gz eclipse.platform.swt-2e4c8c8514e0653f5570876871b93fda6fe4932b.tar.xz eclipse.platform.swt-2e4c8c8514e0653f5570876871b93fda6fe4932b.zip |
fix blanking the whole item when header is visible but there are no columns
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java | 2 |
1 files changed, 2 insertions, 0 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 cd207d97d3..10541f5259 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 @@ -3503,6 +3503,8 @@ LRESULT wmNotifyChild (int wParam, int lParam) { } } x += hdItem.cxy; + } + if (count > 0) { if (printClient || (style & SWT.FULL_SELECTION) != 0) { OS.SetRect (rect, x, nmcd.top, nmcd.right, nmcd.bottom - gridWidth); drawBackground (hDC, OS.GetBkColor (hDC), rect); |