summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed <grant_gayed@ca.ibm.com>2013-06-25 11:27:10 -0400
committerGrant Gayed <grant_gayed@ca.ibm.com>2013-06-25 11:27:10 -0400
commit84e83aa6257b920730d59c31cc40422a968cb7d5 (patch)
tree2079dd41272cec78d8902f185b2a8e1f5b67a726
parent61ef4aabdf27aa1ae4bf019955e3166ba778c10f (diff)
downloadeclipse.platform.swt-84e83aa6257b920730d59c31cc40422a968cb7d5.tar.gz
eclipse.platform.swt-84e83aa6257b920730d59c31cc40422a968cb7d5.tar.xz
eclipse.platform.swt-84e83aa6257b920730d59c31cc40422a968cb7d5.zip
Bug 411006 - Typo in Menu.getBounds()
-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);