diff options
author | Henry Castro <hcastro@collabora.com> | 2021-01-15 10:14:50 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2021-01-19 16:17:18 +0100 |
commit | 4618849a1cbba4e249ee13c3b6412337160a2816 (patch) | |
tree | 6f09475d32885136f6101a7c86aecd352ef5681f /include | |
parent | 871a723ca41d79798b386bf3ec2c6faab3635e41 (diff) |
lok: fix incorrect invalidate cursor position
When the comment is created and it's shown in the "Writer"
application, it creates an initial output area:
mpOutlinerView->SetOutputArea( PixelToLogic( tools::Rectangle(0,0,1,1) ) );
Unfortunately, it causes that send to client side cursor position
and scroll to the beginning of the document.
Change-Id: I13e21c71328b7f05781e7cdeed082d6cc2b9d679
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109371
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/editview.hxx | 1 | ||||
-rw-r--r-- | include/editeng/outliner.hxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx index a7f3180711f5..282d5e0d200e 100644 --- a/include/editeng/editview.hxx +++ b/include/editeng/editview.hxx @@ -236,6 +236,7 @@ public: /// Informs this edit view about which view shell contains it. void RegisterViewShell(OutlinerViewShell* pViewShell); + const OutlinerViewShell* GetViewShell(); /// Informs this edit view about which other shell listens to it. void RegisterOtherShell(OutlinerViewShell* pOtherShell); diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx index c77c2f246ad1..63df073db652 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -257,6 +257,7 @@ public: /// Informs this edit view about which view shell contains it. void RegisterViewShell(OutlinerViewShell* pViewShell); + const OutlinerViewShell* GetViewShell(); SfxItemSet GetAttribs(); |