diff options
author | Felipe Heidrich <fheidric> | 2003-09-24 20:50:04 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2003-09-24 20:50:04 +0000 |
commit | ca879772beccbb2e0a848400a0c962ae48162ddd (patch) | |
tree | 4a4bc1b723c161f82c583f007699961043a3ffce /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java | |
parent | 8edab89e944b297057829033171049ca20ceb017 (diff) | |
download | eclipse.platform.swt-ca879772beccbb2e0a848400a0c962ae48162ddd.tar.gz eclipse.platform.swt-ca879772beccbb2e0a848400a0c962ae48162ddd.tar.xz eclipse.platform.swt-ca879772beccbb2e0a848400a0c962ae48162ddd.zip |
42892
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java | 5 |
1 files changed, 3 insertions, 2 deletions
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 e7fc9dd65a..c3840cfd17 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 @@ -1763,9 +1763,10 @@ public int internal_new_GC (GCData data) { if (data != null) { /* Set the GCData fields */ int mask = SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT; - if ((data.style & mask) == 0) { + if ((data.style & mask) != 0) { + data.layout = (data.style & SWT.RIGHT_TO_LEFT) != 0 ? OS.LAYOUT_RTL : 0; + } else { data.style |= SWT.LEFT_TO_RIGHT; - data.layout = -1; } data.device = device; data.image = this; |