[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - sc/source

Faisal M. Al-Otaibi fmalotaibi at kacst.edu.sa
Tue May 28 22:33:18 PDT 2013


 sc/source/ui/view/gridwin5.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 0a0b061bfbd0e87e59a3aa59a07085198868ec62
Author: Faisal M. Al-Otaibi <fmalotaibi at kacst.edu.sa>
Date:   Tue May 28 11:22:33 2013 +0200

    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 at suse.cz>
    Tested-by: Jan Holesovsky <kendy at suse.cz>
    (cherry picked from commit 3f923bf9cf9b6fe728e7804fdb13aabe620d3dbc)

diff --git a/sc/source/ui/view/gridwin5.cxx b/sc/source/ui/view/gridwin5.cxx
index 7055c22..756f75c 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 );
                 }
             }


More information about the Libreoffice-commits mailing list