summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-10-02 21:33:03 +0300
committerTor Lillqvist <tml@collabora.com>2018-10-05 20:21:04 +0300
commit65da08ea8efef28fc45694d0606e51bb425f1d65 (patch)
tree573210e5a72189ce183cd8ff4f243d0762a8480b /desktop
parent18c0d3c26baa2b61443baf14bcb4be46fcf194e3 (diff)
Call SetOutputSizePixel() in the iOS case, too
Change-Id: I844901f38ec1d93f4183e0678741fecdc7636139
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 2 insertions, 0 deletions
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<VirtualDevice> pDevice(&aData, Size(1, 1), DeviceFormat::DEFAULT);
+ pDevice->SetOutputSizePixel(Size(nCanvasWidth, nCanvasHeight));
+
pDoc->paintTile(*pDevice.get(), nCanvasWidth, nCanvasHeight,
nTilePosX, nTilePosY, nTileWidth, nTileHeight);