diff options
author | Grant Gayed <grant_gayed@ca.ibm.com> | 2013-06-25 11:30:09 -0400 |
---|---|---|
committer | Grant Gayed <grant_gayed@ca.ibm.com> | 2013-06-25 11:30:09 -0400 |
commit | 082681b66332177ea03672e4a3002a6e9aca5dfb (patch) | |
tree | 3217ce7659c5b18e619f399dfc984d9881dc60c8 | |
parent | 84e83aa6257b920730d59c31cc40422a968cb7d5 (diff) | |
download | eclipse.platform.swt-082681b66332177ea03672e4a3002a6e9aca5dfb.tar.gz eclipse.platform.swt-082681b66332177ea03672e4a3002a6e9aca5dfb.tar.xz eclipse.platform.swt-082681b66332177ea03672e4a3002a6e9aca5dfb.zip |
Bug 409239 - Typo in win32 Menu
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java | 4 |
1 files changed, 2 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 23f3e77e02..d55445b2f1 100644 --- 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 @@ -1196,7 +1196,7 @@ void releaseParent () { void releaseWidget () { super.releaseWidget (); backgroundImage = null; - if (hBrush == 0) OS.DeleteObject (hBrush); + if (hBrush != 0) OS.DeleteObject (hBrush); hBrush = 0; if (OS.IsPPC && hwndCB != 0) { if (imageList != null) { @@ -1613,7 +1613,7 @@ void update () { } void updateBackground () { - if (hBrush == 0) OS.DeleteObject (hBrush); + if (hBrush != 0) OS.DeleteObject (hBrush); hBrush = 0; if (backgroundImage != null) { hBrush = OS.CreatePatternBrush (backgroundImage.handle); |