diff options
-rw-r--r-- | sw/source/core/access/accnotextframe.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/core/access/accnotextframe.cxx b/sw/source/core/access/accnotextframe.cxx index c88eef7be8d3..10c312db3cee 100644 --- a/sw/source/core/access/accnotextframe.cxx +++ b/sw/source/core/access/accnotextframe.cxx @@ -109,12 +109,13 @@ void SwAccessibleNoTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem // #i73249# case RES_TITLE_CHANGED: { - OUString sOldTitle; + OUString sOldTitle, sNewTitle; const SwStringMsgPoolItem* pOldItem = dynamic_cast<const SwStringMsgPoolItem*>(pOld); if (pOldItem) sOldTitle = pOldItem->GetString(); - const OUString& sNewTitle( - dynamic_cast<const SwStringMsgPoolItem*>(pNew)->GetString() ); + const SwStringMsgPoolItem* pNewItem = dynamic_cast<const SwStringMsgPoolItem*>(pNew); + if (pNewItem) + sNewTitle = pNewItem->GetString(); if ( sOldTitle == sNewTitle ) { break; |