Kaydet (Commit) 0e3fc4ae authored tarafından Henry Castro's avatar Henry Castro Kaydeden (comit) Miklos Vajna

sc tiled editing: Set the viewport size to document size

When clicking out of range of viewport, the cursor position and edit in place view get wrong values.

Change-Id: I210705c9f8909598d8d47c15c14c06f96bfc4caa
üst fc3896a1
......@@ -469,6 +469,11 @@ void ScModelObj::paintTile( VirtualDevice& rDevice,
ScViewData* pViewData = ScDocShell::GetViewData();
ScGridWindow* pGridWindow = pViewData->GetActiveWin();
// Set the viewport size to document size
const MapMode aMapTwip( MAP_TWIP );
Size aDocSize = getDocumentSize();
pGridWindow->SetOutputSizePixel( pGridWindow->LogicToPixel(aDocSize, aMapTwip) );
pGridWindow->PaintTile( rDevice, nOutputWidth, nOutputHeight,
nTilePosX, nTilePosY, nTileWidth, nTileHeight );
}
......
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