summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaisal M. Al-Otaibi <fmalotaibi@kacst.edu.sa>2013-05-28 11:22:33 +0200
committerJan Holesovsky <kendy@suse.cz>2013-05-28 14:13:31 +0000
commit3f923bf9cf9b6fe728e7804fdb13aabe620d3dbc (patch)
tree733010539a7dd2ce0b62c248f619fd2055eaa59f
parentb0a1666f756aa5f5315366eca9d7d02ddd55d2b7 (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>
-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 7055c223d9e3..756f75c3176f 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 );
}
}