commit | 9f8942d622aba155e3d70bf3428467bbc8768c8a | [log] [tgz] |
---|---|---|
author | Silenio Quarti <silenio> | Tue Sep 26 14:43:58 2006 +0000 |
committer | Silenio Quarti <silenio> | Tue Sep 26 14:43:58 2006 +0000 |
tree | 2755b6df657a5100b2b72762d3acf39ee7f6c476 | |
parent | 8cc8a0e9aa8134388228fcd492f8285d1e169f4c [diff] |
fixing junit
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java index 6998433..9189c83 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java
@@ -720,8 +720,10 @@ } } Gdip.Bitmap_delete(bitmap); - if (this.handle == 0) SWT.error(error); - return; + if (status == 0) { + if (this.handle == 0) SWT.error(error); + return; + } } } catch (SWTException e) {} init(device, new ImageData(filename));