summaryrefslogtreecommitdiff
path: root/vcl/source/window/floatwin.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-01-26 17:10:12 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-01-26 17:10:12 +0000
commit250b492d24692e0d3bb034d7e19cf2f7f7cdb167 (patch)
tree6fb2a435275f8ab884e503b0b984588b4d29e293 /vcl/source/window/floatwin.cxx
parent9edb82ed44f53418988113db12478d9b7a9e38e6 (diff)
INTEGRATION: CWS vcl47 (1.32.74); FILE MERGED
2005/10/28 13:34:00 ssa 1.32.74.1: #i55698# fix RTL comboboxes
Diffstat (limited to 'vcl/source/window/floatwin.cxx')
-rw-r--r--vcl/source/window/floatwin.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index c09fb4d61750..d136abef89b7 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: floatwin.cxx,v $
*
- * $Revision: 1.32 $
+ * $Revision: 1.33 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 12:25:46 $
+ * last change: $Author: hr $ $Date: 2006-01-26 18:10:12 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -708,7 +708,14 @@ void FloatingWindow::StartPopupMode( const Rectangle& rRect, ULONG nFlags )
// so they can be compared across different frames
// !!! rRect is expected to be in screen coordinates of the parent frame window !!!
maFloatRect = rRect;
- maFloatRect.SetPos( GetParent()->OutputToAbsoluteScreenPixel( GetParent()->ScreenToOutputPixel( rRect.TopLeft() ) ) );
+ if( GetParent()->ImplHasMirroredGraphics() )
+ {
+ maFloatRect.SetPos( GetParent()->ScreenToOutputPixel( rRect.TopLeft() ) );
+ maFloatRect = GetParent()->ImplOutputToUnmirroredAbsoluteScreenPixel( maFloatRect );
+ }
+ else
+ maFloatRect.SetPos( GetParent()->OutputToAbsoluteScreenPixel( GetParent()->ScreenToOutputPixel( rRect.TopLeft() ) ) );
+
maFloatRect.Left() -= 2;
maFloatRect.Top() -= 2;
maFloatRect.Right() += 2;