diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-06-28 16:12:30 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-06-28 16:18:48 +0200 |
commit | ee6e6bd5b853aa68c9721f53b5892384e7403eec (patch) | |
tree | 70d66dc42333d2372b214dc098e8ca3331a20782 | |
parent | 2c67d94f1ecf1d3258adc816f0eb6601206fd1cc (diff) |
lok: Don't even try to paint the ruler via LibreOfficeKit.cp-5.3-51
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>
-rw-r--r-- | sw/source/uibase/misc/swruler.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/misc/swruler.cxx b/sw/source/uibase/misc/swruler.cxx index 7eabce4b9109..74ddc6a14724 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 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 |