sc/source/ui/unoobj/docuno.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit c99502a1c00ccec1b061dee10fe6a69715e14b8b Author: Henry Castro <hcas...@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 <hcas...@collabora.com> Tested-by: Henry Castro <hcas...@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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits