diff options
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index 134b24cf96c5..ed08bd992e13 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -1991,6 +1991,12 @@ OUString SwTextNode::InsertText( const OUString & rStr, const SwIndex & rIdx, SetIgnoreDontExpand( bOldExpFlg ); } + if ( HasWriterListeners() ) + { // send this before messing with hints, which will send RES_UPDATE_ATTR + SwInsText aHint( aPos, nLen ); + NotifyClients( nullptr, &aHint ); + } + if ( HasHints() ) { bool const bHadHints(!m_pSwpHints->CanBeDeleted()); @@ -2062,12 +2068,6 @@ OUString SwTextNode::InsertText( const OUString & rStr, const SwIndex & rIdx, "SwTextNode::InsertText: unexpected loss of hints"); } - if ( HasWriterListeners() ) - { - SwInsText aHint( aPos, nLen ); - NotifyClients( nullptr, &aHint ); - } - // By inserting a character, the hidden flags // at the TextNode can become invalid: SetCalcHiddenCharFlags(); |