diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-03-22 21:46:00 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-03-24 19:40:00 +0100 |
commit | 8e005a5677d5cfca18bb68d2a66fc269e5034d25 (patch) | |
tree | 58d33d71e9efe9d3b8d4079a82dcd63b01a3b4ba /sw/source/core/layout/fly.cxx | |
parent | 0100258f2d2e24196417784993c2c5801bf00345 (diff) |
Unfloat: Move the button to the top of the framecp-6.0-27
User can find it easier in this position.
Reviewed-on: https://gerrit.libreoffice.org/69562
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit 743b0a92acc3d1850f4890efaa706098ebf9f558)
Change-Id: I38fd782485a180e0d5223b52cc2c6ee061661600
Reviewed-on: https://gerrit.libreoffice.org/69581
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sw/source/core/layout/fly.cxx')
-rw-r--r-- | sw/source/core/layout/fly.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx index e19893fb62ce..acd348b096a5 100644 --- a/sw/source/core/layout/fly.cxx +++ b/sw/source/core/layout/fly.cxx @@ -1858,8 +1858,8 @@ void SwFlyFrame::UpdateUnfloatButton(SwWrtShell* pWrtSh, bool bShow) const SwEditWin& rEditWin = pWrtSh->GetView().GetEditWin(); SwFrameControlsManager& rMngr = rEditWin.GetFrameControlsManager(); - Point aBottomRightPixel = rEditWin.LogicToPixel( getFrameArea().BottomRight() ); - rMngr.SetFloatingTableButton(this, bShow, aBottomRightPixel); + Point aTopRightPixel = rEditWin.LogicToPixel( getFrameArea().TopRight() ); + rMngr.SetFloatingTableButton(this, bShow, aTopRightPixel); } SwTwips SwFlyFrame::Grow_( SwTwips nDist, bool bTst ) |