diff options
author | Felipe Heidrich <fheidric> | 2011-03-29 20:29:10 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2011-03-29 20:29:10 +0000 |
commit | 846121807a2e67c6346cc340f783d83e0dcf2ab8 (patch) | |
tree | 4391518063eb8aa309533f5f93e5669e5118a98b /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java | |
parent | 987dce59eba860ba8a1b66d7832706a2c6ea5592 (diff) | |
download | eclipse.platform.swt-846121807a2e67c6346cc340f783d83e0dcf2ab8.tar.gz eclipse.platform.swt-846121807a2e67c6346cc340f783d83e0dcf2ab8.tar.xz eclipse.platform.swt-846121807a2e67c6346cc340f783d83e0dcf2ab8.zip |
Bug 334746 - [Presentations] [perfs] Performance regression in PresentationCreateTest* tests
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java index 74e2aaae40..f0863627cc 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java @@ -2893,7 +2893,7 @@ int imageIndex (Image image, int column) { } if (imageList == null) { Rectangle bounds = image.getBounds (); - imageList = display.getImageList (SWT.NONE, bounds.width, bounds.height); + imageList = display.getImageList (style & SWT.RIGHT_TO_LEFT, bounds.width, bounds.height); int index = imageList.indexOf (image); if (index == -1) index = imageList.add (image); int /*long*/ hImageList = imageList.getHandle (); @@ -2934,7 +2934,7 @@ int imageIndexHeader (Image image) { if (image == null) return OS.I_IMAGENONE; if (headerImageList == null) { Rectangle bounds = image.getBounds (); - headerImageList = display.getImageList (SWT.NONE, bounds.width, bounds.height); + headerImageList = display.getImageList (style & SWT.RIGHT_TO_LEFT, bounds.width, bounds.height); int index = headerImageList.indexOf (image); if (index == -1) index = headerImageList.add (image); int /*long*/ hImageList = headerImageList.getHandle (); |