Kaydet (Commit) 4c9ddd59 authored tarafından Michael Stahl's avatar Michael Stahl

SwAccessibleFrameBase::Modify(): avoid accessing deleted mpFrm

In ~SwDoc when a SwFmt is deleted,
SwAccessibleNoTextFrame::GetNoTxtNode() would access the mpFrm which
at that point was already deleted too; avoid that by returning early.

This can be reproduced by closing the bugdoc from fdo#71450.

Change-Id: Ide4d42511ccad116fa0362c23ced299d8430d08a
üst c6f3d909
...@@ -98,6 +98,8 @@ void SwAccessibleNoTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem ...@@ -98,6 +98,8 @@ void SwAccessibleNoTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem
msTitle.isEmpty() ) msTitle.isEmpty() )
{ {
SwAccessibleFrameBase::Modify( pOld, pNew ); SwAccessibleFrameBase::Modify( pOld, pNew );
if (!GetRegisteredIn())
return; // probably was deleted - avoid doing anything
} }
const SwNoTxtNode *pNd = GetNoTxtNode(); const SwNoTxtNode *pNd = GetNoTxtNode();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment