[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - sc/source

Jan Holesovsky kendy at collabora.com
Thu Apr 2 05:13:31 PDT 2015


 sc/source/ui/unoobj/docuno.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 41dad0018ffce8e04b57e4e109defba1551536f1
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Thu Apr 2 14:12:33 2015 +0200

    sc tiled editing: Set the 100% zoom in the selection-related methods too.
    
    Change-Id: I3d32edfb62cbe7eaceed823742ecd729dbe2f627

diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 431175a..16e83e0 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -575,6 +575,9 @@ void ScModelObj::setTextSelection(int nType, int nX, int nY)
     ScInputHandler* pInputHandler = SC_MOD()->GetInputHdl(pViewShell);
     ScDrawView* pDrawView = pViewData->GetScDrawView();
 
+    // update the aLogicMode in ScViewData to something predictable
+    pViewData->SetZoom(Fraction(1, 1), Fraction(1, 1), true);
+
     if (pInputHandler && pInputHandler->IsInputMode())
     {
         // forwarding to editeng - we are editing the cell content
@@ -642,6 +645,9 @@ void ScModelObj::setGraphicSelection(int nType, int nX, int nY)
     ScViewData* pViewData = ScDocShell::GetViewData();
     ScGridWindow* pGridWindow = pViewData->GetActiveWin();
 
+    // update the aLogicMode in ScViewData to something predictable
+    pViewData->SetZoom(Fraction(1, 1), Fraction(1, 1), true);
+
     int nPixelX = nX * pViewData->GetPPTX();
     int nPixelY = nY * pViewData->GetPPTY();
 


More information about the Libreoffice-commits mailing list