Kaydet (Commit) 7fb400c8 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Multiply tile position by the zoom level.

With this, the tiles get rendered correctly at varying zoom levels.

Change-Id: Id5ca18e363dfdb143af1685be96af2f3c3514ea9
üst 9af8e14e
...@@ -898,8 +898,8 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice, ...@@ -898,8 +898,8 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice,
pViewData->SetZoom(aFracX, aFracY, true); pViewData->SetZoom(aFracX, aFracY, true);
pViewData->RefreshZoom(); pViewData->RefreshZoom();
double fTilePosXPixel = static_cast<double>(nTilePosX) * 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; double fTilePosYPixel = static_cast<double>(nTilePosY) * PIXEL_PER_TWIPS * static_cast<double>(aFracY);
SCTAB nTab = pViewData->GetTabNo(); SCTAB nTab = pViewData->GetTabNo();
ScDocument* pDoc = pViewData->GetDocument(); ScDocument* pDoc = pViewData->GetDocument();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment