sw/inc/hintids.hxx | 1 - sw/source/core/crsr/crsrsh.cxx | 9 ++------- 2 files changed, 2 insertions(+), 8 deletions(-)
New commits: commit 5895fb9dac86ecf0cca42dbbb414f69caceae52e Author: Bjoern Michaelsen <bjoern.michael...@libreoffice.org> AuthorDate: Sat Sep 17 18:05:00 2022 +0200 Commit: Bjoern Michaelsen <bjoern.michael...@libreoffice.org> CommitDate: Fri Sep 23 22:48:40 2022 +0200 remove RES_GRAPHIC_SWAPIN, it is never created Change-Id: I9e7546d3f8bf5a3c0cefbdd3a4925467d7439856 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140105 Tested-by: Jenkins Reviewed-by: Bjoern Michaelsen <bjoern.michael...@libreoffice.org> diff --git a/sw/inc/hintids.hxx b/sw/inc/hintids.hxx index 7c6a18723af2..80aa40b9fd8a 100644 --- a/sw/inc/hintids.hxx +++ b/sw/inc/hintids.hxx @@ -443,7 +443,6 @@ constexpr TypedWhichId<SwPtrMsgPoolItem> RES_REMOVE_UNO_OBJECT(181); // empty constexpr TypedWhichId<SwFindNearestNode> RES_FINDNEARESTNODE(184); constexpr TypedWhichId<SwPtrMsgPoolItem> RES_CONTENT_VISIBLE(185); -constexpr TypedWhichId<SwMsgPoolItem> RES_GRAPHIC_SWAPIN(186); constexpr TypedWhichId<SwStringMsgPoolItem> RES_NAME_CHANGED(187); constexpr TypedWhichId<SwStringMsgPoolItem> RES_TITLE_CHANGED(188); constexpr TypedWhichId<SwStringMsgPoolItem> RES_DESCRIPTION_CHANGED(189); diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index 8f3840f22fcc..d0a71e136d33 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -2516,14 +2516,9 @@ void SwCursorShell::SwClientNotify(const SwModify&, const SfxHint& rHint) // SwTextNode::Insert(SwTextHint*, sal_uInt16); we react here and thus do // not need to send the expensive RES_FMT_CHG in Insert. CallChgLnk(); - switch(nWhich) + if( nWhich == RES_OBJECTDYING ) { - case RES_OBJECTDYING: - EndListeningAll(); - break; - case RES_GRAPHIC_SWAPIN: - if(m_aGrfArrivedLnk.IsSet()) - m_aGrfArrivedLnk.Call(*this); + EndListeningAll(); } }