From 9e9681109f7a340c306342791015f12e6f21be4f Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Sat, 6 Nov 2021 15:47:08 +0100 Subject: lok: no need to layout comments in writer Annotations in writer use EditEngine what caused to send cursor position from that EditEngine to online and showing cursor in the top left corner of a document after comment insertion. We don't need to resize/update position comment windows as we send only abstract description of the comments and later rendering is handled by client. Change-Id: I1df0e44f9500c438efd00942a372754c7fbaa170 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124794 Tested-by: Jenkins CollaboraOffice Reviewed-by: Andras Timar --- sw/source/uibase/docvw/AnnotationWin2.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sw/source/uibase/docvw/AnnotationWin2.cxx b/sw/source/uibase/docvw/AnnotationWin2.cxx index 46c9ff24915e..fa64356de8b6 100644 --- a/sw/source/uibase/docvw/AnnotationWin2.cxx +++ b/sw/source/uibase/docvw/AnnotationWin2.cxx @@ -804,6 +804,9 @@ void SwAnnotationWin::DoResize() void SwAnnotationWin::SetSizePixel( const Size& rNewSize ) { + if (comphelper::LibreOfficeKit::isActive()) + return; + InterimItemWindow::SetSizePixel(rNewSize); if (mpShadow) -- cgit v1.2.3