summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-21 14:49:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-05-22 14:26:38 +0200
commit49fc4913ba7fc4a0be2e32407205edd8f31b3172 (patch)
treeffb3a0e3bbbd13995d31eb9ffb38491df3880eb7 /desktop
parentf73980ed151e3d04b02cc463cf9fd6432f14ba03 (diff)
PaintToDevice doesn't use its Size argument
Change-Id: I45ce895ac67be9aaf137e0e4c79954488f23a6a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94637 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index c8fc49c94bf8..717a542a9f27 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -5168,7 +5168,7 @@ static void doc_paintWindowForView(LibreOfficeKitDocument* pThis, unsigned nLOKW
aMapMode.SetOrigin(Point(-(nX / fDPIScale), -(nY / fDPIScale)));
pDevice->SetMapMode(aMapMode);
- pWindow->PaintToDevice(pDevice.get(), Point(0, 0), Size());
+ pWindow->PaintToDevice(pDevice.get(), Point(0, 0));
CGContextRelease(cgc);
@@ -5183,7 +5183,7 @@ static void doc_paintWindowForView(LibreOfficeKitDocument* pThis, unsigned nLOKW
aMapMode.SetOrigin(Point(-(nX / fDPIScale), -(nY / fDPIScale)));
pDevice->SetMapMode(aMapMode);
- pWindow->PaintToDevice(pDevice.get(), Point(0, 0), Size());
+ pWindow->PaintToDevice(pDevice.get(), Point(0, 0));
#endif
comphelper::LibreOfficeKit::setDialogPainting(false);