summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2005-04-08 14:43:59 +0000
committerSilenio Quarti <silenio>2005-04-08 14:43:59 +0000
commit808246d28de2d00a13204405dba66f12f7c19e63 (patch)
tree5c2310cc0ad4d0ac25febd07c1248280bfd99c7c /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
parent38c24f5413d1494e1f1cb8372f156c8484a5682d (diff)
downloadeclipse.platform.swt-808246d28de2d00a13204405dba66f12f7c19e63.tar.gz
eclipse.platform.swt-808246d28de2d00a13204405dba66f12f7c19e63.tar.xz
eclipse.platform.swt-808246d28de2d00a13204405dba66f12f7c19e63.zip
data.hwnd needs to be set
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
index 3effb7cdbb..258cd1a6ba 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
@@ -1104,9 +1104,8 @@ boolean hasFocus () {
public int internal_new_GC (GCData data) {
checkWidget();
int hwnd = handle;
- if (data != null && data.hwnd != 0) {
- hwnd = data.hwnd;
- }
+ if (data != null && data.hwnd != 0) hwnd = data.hwnd;
+ if (data != null) data.hwnd = hwnd;
int hDC = 0;
if (data == null || data.ps == null) {
hDC = OS.GetDC (hwnd);