summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java
index 656a615a0d..c58494d0a3 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java
@@ -1142,7 +1142,7 @@ public int internal_new_GC (GCData data) {
int [] contentView = new int [1];
OS.HIViewFindByID (OS.HIViewGetRoot (window), OS.kHIViewWindowContentID (), contentView);
CGPoint pt = new CGPoint ();
- OS.HIViewConvertPoint (pt, handle, contentView [0]);
+ OS.HIViewConvertPoint (pt, OS.HIViewGetSuperview (handle), contentView [0]);
rect.left += (int) pt.x;
rect.top += (int) pt.y;
rect.right += (int) pt.x;