summaryrefslogtreecommitdiff
path: root/src/interface/Label.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-03 16:44:12 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-03 16:44:12 (GMT)
commit40e5ce5d37cde6d923d9ca68efd0fe49e4940986 (patch)
tree3447fd070de5764a19dad606b4323ae7a9b92148 /src/interface/Label.cpp
parentc7dd248ae3b3b71617ade8a1bbe3a28f25d3d03a (diff)
downloadpowder-40e5ce5d37cde6d923d9ca68efd0fe49e4940986.zip
powder-40e5ce5d37cde6d923d9ca68efd0fe49e4940986.tar.gz
Fix context menu position #65
Diffstat (limited to 'src/interface/Label.cpp')
-rw-r--r--src/interface/Label.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/Label.cpp b/src/interface/Label.cpp
index 4be7fb7..e388e12 100644
--- a/src/interface/Label.cpp
+++ b/src/interface/Label.cpp
@@ -121,7 +121,7 @@ void Label::OnMouseClick(int x, int y, unsigned button)
if(button == BUTTON_RIGHT)
{
if(menu)
- menu->Show(GetParentWindow()->Position + Position + ui::Point(x, y));
+ menu->Show(GetScreenPos() + ui::Point(x, y));
}
else
{