Kaydet (Commit) 34c0b886 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1311944 Logically dead code

for the record its a SwFormatChg we get here at the crash time

regression from

commit 7de992bc
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Mon Jul 13 12:38:18 2015 +0100

    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

Change-Id: I290d6e633811423c3acc198aba7a60943518ec4a
üst 69d31d10
......@@ -102,7 +102,7 @@ void SwAccessibleNoTextFrame::Modify( const SfxPoolItem* pOld, const SfxPoolItem
return; // probably was deleted - avoid doing anything
}
if (nWhich != RES_TITLE_CHANGED || nWhich != RES_DESCRIPTION_CHANGED)
if (nWhich != RES_TITLE_CHANGED && nWhich != RES_DESCRIPTION_CHANGED)
return;
const SwNoTextNode *pNd = GetNoTextNode();
......
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