diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-07-13 12:38:18 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-09-28 10:06:40 +0200 |
commit | 23fcbb8211be2310eabcf486fa8d38cb60f9e634 (patch) | |
tree | d10c1b7b2701229cab19f4f84abe9b997fa6ba6c | |
parent | 28a3531b7bf5ecf232c76f0a5cce86599b87c33e (diff) |
fix a11y crash seen on close of tdf#92573
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
(cherry picked from commit 7de992bcc66c973bb6b247184cac38f01cd1104a)
Change-Id: I642beb66613481cbc7ee18647f0204a67d670a84
Reviewed-on: https://gerrit.libreoffice.org/16991
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
(cherry picked from commit b3780aab0736776866fc4d6c9453871e30557d01)
-rw-r--r-- | sw/source/core/access/accnotextframe.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/access/accnotextframe.cxx b/sw/source/core/access/accnotextframe.cxx index c88eef7be8d3..f24eb0e70162 100644 --- a/sw/source/core/access/accnotextframe.cxx +++ b/sw/source/core/access/accnotextframe.cxx @@ -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 SwNoTxtNode *pNd = GetNoTxtNode(); OSL_ENSURE( pNd == aDepend.GetRegisteredIn(), "invalid frame" ); switch( nWhich ) |