summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java
index e8a57c83ef..57d3bebb22 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java
@@ -381,7 +381,7 @@ void fixMenus (Decorations newParent) {
GtkAllocation allocation = new GtkAllocation ();
gtk_widget_get_allocation (handle, allocation);
int x = origin_x [0] + allocation.x;
- int y = origin_x [0] + allocation.y;
+ int y = origin_y [0] + allocation.y;
int width = allocation.width;
int height = allocation.height;
return new Rectangle (x, y, width, height);