summaryrefslogtreecommitdiff
path: root/vcl/aqua/source/window/salframeview.mm
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/aqua/source/window/salframeview.mm')
-rwxr-xr-xvcl/aqua/source/window/salframeview.mm7
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/aqua/source/window/salframeview.mm b/vcl/aqua/source/window/salframeview.mm
index e0a538b16cee..77e7222bdec1 100755
--- a/vcl/aqua/source/window/salframeview.mm
+++ b/vcl/aqua/source/window/salframeview.mm
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: salframeview.mm,v $
- * $Revision: 1.13 $
+ * $Revision: 1.12.22.2 $
*
* This file is part of OpenOffice.org.
*
@@ -456,10 +456,7 @@ private:
NSPoint aPt = [NSEvent mouseLocation];
NSRect aFrameRect = [pDispatchFrame->getWindow() frame];
- if( aPt.x < aFrameRect.origin.x ||
- aPt.y < aFrameRect.origin.y ||
- aPt.x >= aFrameRect.origin.x + aFrameRect.size.width ||
- aPt.y >= aFrameRect.origin.y + aFrameRect.size.height )
+ if ( ! NSPointInRect( aPt, aFrameRect ) )
{
// no, it is not
// now we need to find the one it may be in