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:32:17 +0300
commit0a0b061bfbd0e87e59a3aa59a07085198868ec62 (patch)
treee13a09b8bf7fb9f0d08b9248c2354f653a2a2d86
parentb74f9bdb407ed56942ee041bc4af3edff0126595 (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 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 );
}
}