diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-04-05 22:23:28 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-04-07 08:05:04 +0200 |
commit | 83b7bfc0efefb3c77e5c59553320e98539250c62 (patch) | |
tree | 1d23842491eb9f7bd12d315fa83ec85a9bf1cfff /desktop | |
parent | Fix crash from regression due to ba98f6e3e4dbfc23474e13d59bb08c618ee8c4e5 (diff) | |
download | core-83b7bfc0efefb3c77e5c59553320e98539250c62.tar.gz core-83b7bfc0efefb3c77e5c59553320e98539250c62.zip |
sw lok: View jumps to cursor position even if it is moved by an other view.
Scrolling is done twice. Once in SwCursorShell::UpdateCursor() by
SCROLLWIN flag. Here we can check the actual viewid and avoid scrolling
if the cursor is move by an other user.
The second instance in the LO online code, for it we need to pass the
viewid identifying the view which moved the cursor.
Change-Id: I033274f88ce41acbb632e2aeb0d986ab11cd2d52
Reviewed-on: https://gerrit.libreoffice.org/52220
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 67beb36d3a56..28feff959221 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3514,6 +3514,8 @@ static void lo_setOptionalFeatures(LibreOfficeKit* pThis, unsigned long long con comphelper::LibreOfficeKit::setTiledAnnotations(false); if (features & LOK_FEATURE_RANGE_HEADERS) comphelper::LibreOfficeKit::setRangeHeaders(true); + if (features & LOK_FEATURE_VIEWID_IN_VISCURSOR_INVALIDATION_CALLBACK) + comphelper::LibreOfficeKit::setViewIdForVisCursorInvalidation(true); } static void lo_setDocumentPassword(LibreOfficeKit* pThis, |