[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - sw/source

Caolán McNamara caolanm at redhat.com
Thu Jul 23 02:07:32 PDT 2015


 sw/source/core/access/accnotextframe.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 96f36158e386a3b252157058bde87c644ff7398a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jul 16 16:16:40 2015 +0100

    coverity#1311944 Logically dead code
    
    for the record its a SwFormatChg we get here at the crash time
    
    regression from
    
    commit 7de992bcc66c973bb6b247184cac38f01cd1104a
    Author: Caolán McNamara <caolanm at 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
    (cherry picked from commit 34c0b8869784cb44a516c97213ef24566a4ed111)
    Reviewed-on: https://gerrit.libreoffice.org/17137
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/access/accnotextframe.cxx b/sw/source/core/access/accnotextframe.cxx
index bcf5031..6153ed4 100644
--- a/sw/source/core/access/accnotextframe.cxx
+++ b/sw/source/core/access/accnotextframe.cxx
@@ -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();


More information about the Libreoffice-commits mailing list