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 eed02b7209..b483917d2d 100644 --- 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 @@ -232,7 +232,7 @@ private boolean isReusable(int width, int height) { return false; } return (requestedHeight == height && requestedWidth == width) - || (handleContainer.height() == height && handleContainer.height() == width); + || (handleContainer.height() == height && handleContainer.width() == width); } private Optional createHandleAtExactSize(int width, int height) {