[Libreoffice-commits] core.git: sc/source
Kohei Yoshida
kohei.yoshida at collabora.com
Fri Jan 16 14:01:04 PST 2015
sc/source/ui/view/gridwin4.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 7fb400c886f59fb75274213af4374798b44f04dd
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Fri Jan 16 16:58:49 2015 -0500
Multiply tile position by the zoom level.
With this, the tiles get rendered correctly at varying zoom levels.
Change-Id: Id5ca18e363dfdb143af1685be96af2f3c3514ea9
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index b906bd4..a8abe26 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -898,8 +898,8 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice,
pViewData->SetZoom(aFracX, aFracY, true);
pViewData->RefreshZoom();
- double fTilePosXPixel = static_cast<double>(nTilePosX) * PIXEL_PER_TWIPS;
- double fTilePosYPixel = static_cast<double>(nTilePosY) * PIXEL_PER_TWIPS;
+ double fTilePosXPixel = static_cast<double>(nTilePosX) * PIXEL_PER_TWIPS * static_cast<double>(aFracX);
+ double fTilePosYPixel = static_cast<double>(nTilePosY) * PIXEL_PER_TWIPS * static_cast<double>(aFracY);
SCTAB nTab = pViewData->GetTabNo();
ScDocument* pDoc = pViewData->GetDocument();
More information about the Libreoffice-commits
mailing list