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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user