Skip to content

Commit

Permalink
fix a11y crash seen on close of tdf#92573
Browse files Browse the repository at this point in the history
its not the reported crash, which has "gone away" which might
be a duplicate of tdf#90502

the switch only handled RES_TITLE_CHANGED and RES_DESCRIPTION_CHANGED so if its
anything else, e.g. OBJ_DYING, then don't attempt GetNoTextNode

Change-Id: I642beb66613481cbc7ee18647f0204a67d670a84
  • Loading branch information
Caolán McNamara committed Jul 13, 2015
1 parent 5af8cf2 commit 7de992b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sw/source/core/access/accnotextframe.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ void SwAccessibleNoTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem
return; // probably was deleted - avoid doing anything
}

if (nWhich != RES_TITLE_CHANGED || nWhich != RES_DESCRIPTION_CHANGED)
return;

const SwNoTextNode *pNd = GetNoTextNode();
OSL_ENSURE( pNd == aDepend.GetRegisteredIn(), "invalid frame" );
switch( nWhich )
Expand Down

0 comments on commit 7de992b

Please sign in to comment.