summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-02-25 16:14:02 -0900
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-03-01 08:35:36 +0100
commitd69cf130ffeaa342780425572ab6a3510f8eed79 (patch)
treeaa05ed5dba29a4c49b02688a9034df55e96c01f4 /sw
parentf6a7527990027a86ffcdd3ff55ae550b1bd7dfae (diff)
tdf#115666 Behavior change of Navigate By when in Comment
Change-Id: I254e6a252cf96374613cc8a6fb8f139ee6d7418e Reviewed-on: https://gerrit.libreoffice.org/50551 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uiview/viewmdi.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/uibase/uiview/viewmdi.cxx b/sw/source/uibase/uiview/viewmdi.cxx
index 1abdd08429ad..f56ac21dda99 100644
--- a/sw/source/uibase/uiview/viewmdi.cxx
+++ b/sw/source/uibase/uiview/viewmdi.cxx
@@ -50,6 +50,7 @@
#include <IDocumentSettingAccess.hxx>
#include <PostItMgr.hxx>
+#include <AnnotationWin.hxx>
sal_uInt16 SwView::m_nMoveType = NID_PGE;
sal_Int32 SwView::m_nActMark = 0;
@@ -316,6 +317,12 @@ IMPL_LINK( SwView, MoveNavigationHdl, void*, p, void )
if ( IsDrawMode() )
LeaveDrawCreate();
}
+ if ( NID_POSTIT != m_nMoveType && m_pPostItMgr )
+ {
+ sw::annotation::SwAnnotationWin* pActiveSidebarWin = m_pPostItMgr->GetActiveSidebarWin();
+ if (pActiveSidebarWin)
+ pActiveSidebarWin->SwitchToFieldPos();
+ }
switch( m_nMoveType )
{
case NID_PGE: