[Libreoffice-commits] core.git: sw/source
Jim Raykowski
raykowj at gmail.com
Tue Nov 7 09:26:47 UTC 2017
sw/source/uibase/utlui/content.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 33021ea5c6a5c7aebd4f11ec5e2b4502a3fbfd7f
Author: Jim Raykowski <raykowj at gmail.com>
Date: Sat Sep 16 17:54:43 2017 -0800
tdf#112435 Scroll to navigated position
Force scroll to position of navigation when navigating to
inactive document using Navigator.
Change-Id: I8671973f5fdb5f4158a7795bf0b3381db867d57a
Reviewed-on: https://gerrit.libreoffice.org/44330
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 5cbae839c1a2..f7c6cc627f39 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -3504,6 +3504,14 @@ void SwContentTree::GotoContent(SwContent* pCnt)
rView.StopShellTimer();
rView.GetPostItMgr()->SetActiveSidebarWin(nullptr);
rView.GetEditWin().GrabFocus();
+
+ // force scroll to cursor position when navigating to inactive document
+ if(!bSel)
+ {
+ Point rPoint = m_pActiveShell->GetCursorDocPos();
+ rPoint.setX(0);
+ rView.SetVisArea(rPoint);
+ }
}
// Now even the matching text::Bookmark
More information about the Libreoffice-commits
mailing list