sw/source/uibase/docvw/AnnotationWin2.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 9e9681109f7a340c306342791015f12e6f21be4f
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Sat Nov 6 15:47:08 2021 +0100
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Thu Nov 11 10:49:01 2021 +0100

    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 <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>

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)

Reply via email to