summaryrefslogtreecommitdiff
path: root/vcl/osx/salmenu.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/osx/salmenu.cxx')
-rw-r--r--vcl/osx/salmenu.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/osx/salmenu.cxx b/vcl/osx/salmenu.cxx
index 303c1fe21073..59b76511f3a2 100644
--- a/vcl/osx/salmenu.cxx
+++ b/vcl/osx/salmenu.cxx
@@ -880,8 +880,12 @@ Rectangle AquaSalMenu::GetMenuBarButtonRectPixel( sal_uInt16 i_nItemId, SalFrame
if( ! pNSWin )
return Rectangle();
+#if MACOSX_SDK_VERSION >= 1070
+ NSRect aRect = [pNSWin convertRectToScreen:[pNSWin frame]];
+#else
NSRect aRect = [pNSWin frame];
aRect.origin = [pNSWin convertBaseToScreen: NSMakePoint( 0, 0 )];
+#endif
// make coordinates relative to reference frame
static_cast<AquaSalFrame*>(i_pReferenceFrame)->CocoaToVCL( aRect.origin );