diff options
author | Faisal M. Al-Otaibi <fmalotaibi@kacst.edu.sa> | 2013-05-28 11:22:33 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2013-11-05 10:56:30 +0100 |
commit | a68a6beb4f3bab39ee007921c46dc014538fa4f0 (patch) | |
tree | eaa4f640054a7185aad5746e703a44a9811cc2bd /sc | |
parent | 94de4fedf28749c898895afa5f620d2d440a264a (diff) |
fdo#63323 fix the comment position when the mouse over cell
fix the X position when the sheet are RTL.
Change-Id: I9b38a840fb17a70e1ba60d46b8c83b7e498501e1
Reviewed-on: https://gerrit.libreoffice.org/4069
Reviewed-by: Jan Holesovsky <kendy@suse.cz>
Tested-by: Jan Holesovsky <kendy@suse.cz>
(cherry picked from commit 3f923bf9cf9b6fe728e7804fdb13aabe620d3dbc)
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/gridwin5.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin5.cxx b/sc/source/ui/view/gridwin5.cxx index 9789a24ba8d1..c1fb32a9d8aa 100644 --- a/sc/source/ui/view/gridwin5.cxx +++ b/sc/source/ui/view/gridwin5.cxx @@ -222,6 +222,10 @@ bool ScGridWindow::ShowNoteMarker( SCsCOL nPosX, SCsROW nPosY, bool bKeyboard ) MapMode aDrawMode = GetDrawMapMode(); Point aCurPosHmm = PixelToLogic(aScreenPos, aDrawMode ); Point aGridOff = aCurPosHmm -aOldPos; + // fdo#63323 fix the X Position for the showing comment when + // the mouse over the cell when the sheet are RTL + if ( pDoc->IsNegativePage(nTab)) + aGridOff.setX(aCurPosHmm.getX() + aOldPos.getX()); pNoteMarker->SetGridOff( aGridOff ); } } |