From 284044de2948ceb46f55d2a55a064618477a8303 Mon Sep 17 00:00:00 2001 From: Steve Northover Date: Mon, 22 Aug 2005 17:23:23 +0000 Subject: wrong image list used for image header --- .../Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java | 2 +- .../Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java index 0f91307c66..ec62466860 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java @@ -620,7 +620,7 @@ void setSortDirection (int direction) { hdItem.fmt &= ~(OS.HDF_SORTUP | OS.HDF_SORTDOWN); if (image != null) { hdItem.fmt |= OS.HDF_IMAGE; - hdItem.iImage = parent.imageIndex (image); + hdItem.iImage = parent.imageIndexHeader (image); } else { hdItem.fmt &= ~OS.HDF_IMAGE; } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java index 6d113f3bd8..f2cf920fe5 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java @@ -579,7 +579,7 @@ void setSortDirection (int direction) { hdItem.fmt &= ~(OS.HDF_SORTUP | OS.HDF_SORTDOWN); if (image != null) { hdItem.fmt |= OS.HDF_IMAGE; - hdItem.iImage = parent.imageIndex (image, index); + hdItem.iImage = parent.imageIndexHeader (image); } else { hdItem.fmt &= ~OS.HDF_IMAGE; } -- cgit