From 65da08ea8efef28fc45694d0606e51bb425f1d65 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 2 Oct 2018 21:33:03 +0300 Subject: Call SetOutputSizePixel() in the iOS case, too Change-Id: I844901f38ec1d93f4183e0678741fecdc7636139 --- desktop/source/lib/init.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'desktop/source/lib') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 67b10ce4c934..d28bad27d375 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2098,6 +2098,8 @@ static void doc_paintTile(LibreOfficeKitDocument* pThis, // the Size argument is irrelevant, I hope ScopedVclPtrInstance pDevice(&aData, Size(1, 1), DeviceFormat::DEFAULT); + pDevice->SetOutputSizePixel(Size(nCanvasWidth, nCanvasHeight)); + pDoc->paintTile(*pDevice.get(), nCanvasWidth, nCanvasHeight, nTilePosX, nTilePosY, nTileWidth, nTileHeight); -- cgit