From 260a4a63d16a01842b50a15e51e08590dbbb75a4 Mon Sep 17 00:00:00 2001 From: Philippe Jung Date: Thu, 28 May 2015 17:44:03 +0200 Subject: tdf#91592 WRITER crashes when navigating through comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara (cherry picked from commit 4826007f0e09160ffdb592d10b65eb262ada18c8) Reviewed-on: https://gerrit.libreoffice.org/16031 --- sw/source/uibase/uiview/viewmdi.cxx | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3