diff options
author | Steve Northover <steve> | 2005-07-06 19:32:06 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2005-07-06 19:32:06 +0000 |
commit | 3a479c7b5f334c338a13bd42ca4f316ae25b9760 (patch) | |
tree | 0081491f253060e48b9829d90bb56a5aa56494c7 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java | |
parent | c72e2c5e77719beb203151c973cd9ab44b7e07f2 (diff) | |
download | eclipse.platform.swt-3a479c7b5f334c338a13bd42ca4f316ae25b9760.tar.gz eclipse.platform.swt-3a479c7b5f334c338a13bd42ca4f316ae25b9760.tar.xz eclipse.platform.swt-3a479c7b5f334c338a13bd42ca4f316ae25b9760.zip |
don't destroy an image list we didn't create
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java index c0856098ed..112e328ff9 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java @@ -933,8 +933,6 @@ public boolean getVisible () { int imageIndex (Image image) { if (hwndCB == 0 || image == null) return OS.I_IMAGENONE; if (imageList == null) { - int hOldList = OS.SendMessage (hwndCB, OS.TB_GETIMAGELIST, 0, 0); - if (hOldList != 0) OS.ImageList_Destroy (hOldList); Rectangle bounds = image.getBounds (); imageList = display.getImageList (style & SWT.RIGHT_TO_LEFT, bounds.width, bounds.height); int hImageList = imageList.getHandle (); |