[Libreoffice-commits] core.git: sc/source
Henry Castro
hcastro at collabora.com
Fri Jan 22 18:29:06 PST 2016
sc/source/ui/unoobj/docuno.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit c99502a1c00ccec1b061dee10fe6a69715e14b8b
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 ebcb87b..f39c869 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -631,7 +631,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;
@@ -786,7 +787,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