| commit | 1a12438faeeb74fcb1151e0fd34fcc4c70340c8e | [log] |
|---|---|---|
| author | Jim Raykowski <raykowj@gmail.com> | Sat Dec 17 12:10:59 2022 -0900 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Tue Dec 20 09:00:25 2022 +0000 |
| tree | 16ab6677e32b21d4b168ad29627638d289e11245 | |
| parent | 63baa8c2450e2333fa343f8ddedad5f5908234e6 [diff] |
tdf#138587 Preserve doc view x position on go to content from the Writer Navigator. Change-Id: I55b05be037b4ce010fb0476f584921c7ecae79bc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144392 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144456
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index e45e6f9..0185943 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx
@@ -5666,9 +5666,8 @@ void SwContentTree::GotoContent(const SwContent* pCnt) (!m_pActiveShell->IsCursorVisible() && !m_pActiveShell->IsFrameSelected() && !m_pActiveShell->IsObjSelected())) { Point rPoint = m_pActiveShell->GetCursorDocPos(); rPoint.setX(0); rView.SetVisArea(rPoint); Point aPoint(rView.GetVisArea().getX(), m_pActiveShell->GetCursorDocPos().getY()); rView.SetVisArea(aPoint); } }