Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2002-03-15 19:15:07 +0000
committerSilenio Quarti2002-03-15 19:15:07 +0000
commit7522ecc3377a2ea5f6e1319d6484ca5c6925e7fd (patch)
tree33c4b2eaa80d788415eeb31900dca1711642d2a1
parentb919844cab9404aecf29c1e8709e2c6e3d154d5a (diff)
downloadeclipse.platform.swt-7522ecc3377a2ea5f6e1319d6484ca5c6925e7fd.tar.gz
eclipse.platform.swt-7522ecc3377a2ea5f6e1319d6484ca5c6925e7fd.tar.xz
eclipse.platform.swt-7522ecc3377a2ea5f6e1319d6484ca5c6925e7fd.zip
*** empty log message ***
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Image.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Image.java
index 9fc5e24126..7a815e27e6 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Image.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Image.java
@@ -907,11 +907,11 @@ void init(Device device, int width, int height) {
if (device == null) device = Device.getDevice();
if (device == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
this.device = device;
- /* Create the pixmap */
if (width <= 0 | height <= 0) {
SWT.error(SWT.ERROR_INVALID_ARGUMENT);
}
+ /* Create the pixmap */
this.type = SWT.BITMAP;
int xDisplay = device.xDisplay;
int screen = OS.XDefaultScreenOfDisplay(xDisplay);

Back to the top