[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.0' - sc/source
Henry Castro
hcastro at collabora.com
Fri Jan 22 18:33:42 PST 2016
sc/source/ui/unoobj/docuno.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 37cb554fb207a8ace162876edae8858258d90d44
Author: Henry Castro <hcastro at collabora.com>
Date: Fri Jan 22 16:47:51 2016 -0400
sc lokit: update zoom values to graphic and text selection
Change-Id: I750f31c5698d9dc5ed589a1812a6993991915dc5
Reviewed-on: https://gerrit.libreoffice.org/21724
Reviewed-by: Henry Castro <hcastro at collabora.com>
Tested-by: Henry Castro <hcastro at collabora.com>
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 0aada85..0dbff72 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -629,7 +629,8 @@ void ScModelObj::setTextSelection(int nType, int nX, int nY)
ScDrawView* pDrawView = pViewData->GetScDrawView();
// update the aLogicMode in ScViewData to something predictable
- pViewData->SetZoom(Fraction(1, 1), Fraction(1, 1), true);
+ pViewData->SetZoom(Fraction(mnTilePixelWidth * TWIPS_PER_PIXEL, mnTileTwipWidth),
+ Fraction(mnTilePixelHeight * TWIPS_PER_PIXEL, mnTileTwipHeight), true);
bool bHandled = false;
@@ -785,7 +786,8 @@ void ScModelObj::setGraphicSelection(int nType, int nX, int nY)
ScGridWindow* pGridWindow = pViewData->GetActiveWin();
// update the aLogicMode in ScViewData to something predictable
- pViewData->SetZoom(Fraction(1, 1), Fraction(1, 1), true);
+ pViewData->SetZoom(Fraction(mnTilePixelWidth * TWIPS_PER_PIXEL, mnTileTwipWidth),
+ Fraction(mnTilePixelHeight * TWIPS_PER_PIXEL, mnTileTwipHeight), true);
int nPixelX = nX * pViewData->GetPPTX();
int nPixelY = nY * pViewData->GetPPTY();
More information about the Libreoffice-commits
mailing list