summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Jung <phil.jung@free.fr>2015-05-28 17:44:03 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-06-02 08:07:04 +0000
commit4826007f0e09160ffdb592d10b65eb262ada18c8 (patch)
tree8006d62c6dc4e09078b06e72e4da4b3d750a1363
parent04b32cc8254d7489f3e5be35f9fb6352863aac3e (diff)
tdf#91592 WRITER crashes when navigating through comments
without rSh.EnterStdMode, the image is selected and it has no GetTextNode. Change-Id: I91ed5a1ed002a04919042f4df22c49d3189daccd Reviewed-on: https://gerrit.libreoffice.org/15952 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/uibase/uiview/viewmdi.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/uibase/uiview/viewmdi.cxx b/sw/source/uibase/uiview/viewmdi.cxx
index e875d560739b..03925bb4cbd0 100644
--- a/sw/source/uibase/uiview/viewmdi.cxx
+++ b/sw/source/uibase/uiview/viewmdi.cxx
@@ -423,6 +423,7 @@ IMPL_LINK( SwView, MoveNavigationHdl, bool *, pbNext )
case NID_POSTIT:
{
+ rSh.EnterStdMode();
sw::sidebarwindows::SwSidebarWin* pPostIt = GetPostItMgr()->GetActiveSidebarWin();
if (pPostIt)
GetPostItMgr()->SetActiveSidebarWin(0);