summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2021-02-02 11:57:23 -0400
committerHenry Castro <hcastro@collabora.com>2021-02-10 18:44:30 +0100
commitf7c1c8955a680740a86f7b5b677a25f6fb74ffbe (patch)
treeb0fafb2810931d7122afcd5a2830a5884c2d5604 /sw
parente08b446e46f56e15af58fdd4396afba1a316f9e5 (diff)
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@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 7a9b6456227c2a54b0b23cfc18679883b638e969) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110352 Tested-by: Jenkins Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/docvw/AnnotationWin2.cxx5
1 files changed, 0 insertions, 5 deletions
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) ) );