diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-04 16:09:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-05 09:22:49 +0200 |
commit | 5b6fbf522f434c2f55022476e0c4706cc0929ab5 (patch) | |
tree | d7355faf5d49bd7102cee6821034fc5c83110d7e | |
parent | 7b0d277e04f178ade10dfd8ee4f1cab2e36dc41b (diff) |
fix bug in SfxDockingWindow::CalcAlignment
ever since
commit 715b590e8753fac3083e15a13f14270f15162050
Date: Tue Jul 6 12:35:55 2004 +0000
INTEGRATION: CWS docking1 (1.29.254); FILE MERGED
Change-Id: Ic447e12592b30f9cfe8ad22bd32214d02cf36477
Reviewed-on: https://gerrit.libreoffice.org/52389
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sfx2/source/dialog/dockwin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx index 958423e4473b..991d2f01ccdd 100644 --- a/sfx2/source/dialog/dockwin.cxx +++ b/sfx2/source/dialog/dockwin.cxx @@ -1222,7 +1222,7 @@ SfxChildAlignment SfxDockingWindow::CalcAlignment(const Point& rPos, tools::Rect Point aNewPos(rPos); aNewPos.AdjustX( -(aSmallDockingRect.GetWidth()/2) ); aNewPos.AdjustY( -(aSmallDockingRect.GetHeight()/2) ); - aSmallDockingRect.SetPos(rPos); + aSmallDockingRect.SetPos(aNewPos); tools::Rectangle aIntersectRect = aInRect.GetIntersection( aSmallDockingRect ); if ( aIntersectRect == aSmallDockingRect ) // docking rectangle completely inside (shrunk) inner area -> floating mode |