summaryrefslogtreecommitdiff
path: root/vcl/source/window/floatwin.cxx
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2002-11-12 09:57:22 +0000
committerStephan Schäfer <ssa@openoffice.org>2002-11-12 09:57:22 +0000
commit431d33ce272ea194e569e21b467ea3bb9ec774c8 (patch)
tree61f721f183ae1f97556eb39bd55d3dbf8df9e251 /vcl/source/window/floatwin.cxx
parent002075ee9e1d5c4bc292c46bd5238e274415ba0e (diff)
#103982# correct window position on screen for BiDi case
Diffstat (limited to 'vcl/source/window/floatwin.cxx')
-rw-r--r--vcl/source/window/floatwin.cxx17
1 files changed, 5 insertions, 12 deletions
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index 89bbd879e0ea..893e9aa9020d 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: floatwin.cxx,v $
*
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
*
- * last change: $Author: ssa $ $Date: 2002-10-24 10:24:19 $
+ * last change: $Author: ssa $ $Date: 2002-11-12 10:56:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -283,16 +283,9 @@ Point FloatingWindow::ImplCalcPos( Window* pWindow,
Rectangle devRectRTL( devRect );
if( bRTL )
- {
- Point p = normRect.TopLeft();
- long w = rRect.getWidth();
- p.X() = p.X() - pW->GetPosPixel().X();
- p.X() = pW->GetPosPixel().X() + pW->GetSizePixel().Width() - w - p.X();
- Point p2 = normRect.BottomRight();
- p2.X() = p.X()+w;
- devRectRTL = Rectangle( pW->OutputToAbsoluteScreenPixel( p ),
- pW->OutputToAbsoluteScreenPixel( p2 ));
- }
+ // create a rect that can be compared to desktop coordinates
+ devRectRTL = pW->ImplOutputToUnmirroredAbsoluteScreenPixel( normRect );
+
USHORT nArrangeAry[5];
USHORT nArrangeIndex;