[Libreoffice-commits] core.git: sw/source

Henry Castro (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 10 17:45:20 UTC 2021


 sw/source/uibase/docvw/AnnotationWin2.cxx |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit f7c1c8955a680740a86f7b5b677a25f6fb74ffbe
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Tue Feb 2 11:57:23 2021 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Wed Feb 10 18:44:30 2021 +0100

    lok: remove annotation viewshell notifier
    
    Unfortunately the Annotation window sends cursor position
    to client side and it causes horrible effects like
    scrolling document due to different coordinates with the
    document.
    
    This patch will disable any notification to client side,
    also it removes a unit test related to check annotation
    cursor position.
    
    Change-Id: Ib432ef020c48bb1a9c82acc43ffccdb4230589c8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110328
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    (cherry picked from commit 7a9b6456227c2a54b0b23cfc18679883b638e969)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110352
    Tested-by: Jenkins
    Reviewed-by: Henry Castro <hcastro at collabora.com>

diff --git a/sw/source/uibase/docvw/AnnotationWin2.cxx b/sw/source/uibase/docvw/AnnotationWin2.cxx
index f0f9235a1566..8e43d4d62f84 100644
--- a/sw/source/uibase/docvw/AnnotationWin2.cxx
+++ b/sw/source/uibase/docvw/AnnotationWin2.cxx
@@ -702,11 +702,6 @@ void SwAnnotationWin::DoResize()
 
     mpOutliner->SetPaperSize( PixelToLogic( Size(aWidth,aHeight) ) ) ;
 
-    if (comphelper::LibreOfficeKit::isActive() && !mpOutlinerView->GetViewShell())
-    {
-        mpOutlinerView->RegisterViewShell(&mrView);
-    }
-
     if (mxVScrollbar->get_vpolicy() == VclPolicyType::NEVER)
     {   // if we do not have a scrollbar anymore, we want to see the complete text
         mpOutlinerView->SetVisArea( PixelToLogic( tools::Rectangle(0,0,aWidth,aHeight) ) );


More information about the Libreoffice-commits mailing list