summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2018-06-28 16:12:30 +0200
committerJan Holesovsky <kendy@collabora.com>2018-06-28 18:36:41 +0200
commit37cf47dabf742ab8ca4852d3aa298a36d169302c (patch)
treea303b4882cfe5c5c50ec05654aba15db36025edd
parent164b1927050086824d7bfd38e006ec9f7225f745 (diff)
lok: Don't even try to paint the ruler via LibreOfficeKit.
But we need to have it behind the scenes, otherwise the Online's ruler does not get notifications. Change-Id: I72bef28cb15c462572b511449d538b067f7cb141 Reviewed-on: https://gerrit.libreoffice.org/56598 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit ee6e6bd5b853aa68c9721f53b5892384e7403eec) Reviewed-on: https://gerrit.libreoffice.org/56601 Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com>
-rw-r--r--sw/source/uibase/misc/swruler.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/misc/swruler.cxx b/sw/source/uibase/misc/swruler.cxx
index c208c9eeb353..1784ac20dbcd 100644
--- a/sw/source/uibase/misc/swruler.cxx
+++ b/sw/source/uibase/misc/swruler.cxx
@@ -96,6 +96,9 @@ void SwCommentRuler::dispose()
void SwCommentRuler::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect)
{
+ if (comphelper::LibreOfficeKit::isActive())
+ return; // no need to waste time on startup
+
SvxRuler::Paint(rRenderContext, rRect);
// Don't draw if there is not any note