summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaisal M. Al-Otaibi <fmalotaibi@kacst.edu.sa>2013-05-28 11:22:33 +0200
committerLior Kaplan <kaplanlior@gmail.com>2013-05-29 08:36:04 +0300
commitd158bdce41ce0a199ef0e862f667399b571704b6 (patch)
treee1d0be85ea09afd0d1aa4f802c60dd9799437880
parent76461aa3e87d6d1c80e6c54477f8887df4d7401b (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)
-rw-r--r--sc/source/ui/view/gridwin5.cxx4
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 );
}
}