summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-10-02 21:33:03 +0300
committerMichael Meeks <michael.meeks@collabora.com>2018-10-30 17:00:46 +0000
commit85831e8bc9e6b95ff97096bdbe718d1b251b0265 (patch)
tree26e9f01b1039078605989709aca5a1a67e9f8fec /desktop
parent6cf73ae2491300882a30b8bade1212e9c3c284f9 (diff)
Call SetOutputSizePixel() in the iOS case, too
Change-Id: I844901f38ec1d93f4183e0678741fecdc7636139 (cherry picked from commit 65da08ea8efef28fc45694d0606e51bb425f1d65) Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
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 4032c25a9613..734862fa1420 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -2104,6 +2104,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);
#else