summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-07-28 22:45:07 +0530
committerJan Holesovsky <kendy@collabora.com>2017-11-15 17:07:06 +0100
commitff3ae856f628810b7addf941a580e2a02bdaa828 (patch)
treeeadeeb6cb2975cf2807b89a9c8da90e536865e39 /desktop/source
parenta0b8633ad73888d99c16948c0311b9c795683454 (diff)
lokdialog: Set dialog painting flags while painting
These are used to supress any dialog invalidations emitted while painting the dialog. We are not interested in any such invalidations. Change-Id: I2a7b018124af501bce18adbff0f5db85adf5fce2
Diffstat (limited to 'desktop/source')
-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 a94af9bd825c..b1e249a3ca1e 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3053,7 +3053,9 @@ static void doc_paintDialog(LibreOfficeKitDocument* pThis, const char* pDialogId
vcl::DialogID aDialogID = OUString::createFromAscii(pDialogId);
+ comphelper::LibreOfficeKit::setDialogPainting(true);
pDialogRenderable->paintDialog(aDialogID, *pDevice.get(), *nWidth, *nHeight);
+ comphelper::LibreOfficeKit::setDialogPainting(false);
}
static char* lo_getError (LibreOfficeKit *pThis)