forms/source/richtext/rtattributes.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit af94177d64828d227fd4008ec797378715282192
Author: Jochen Nitschke <[email protected]>
Date:   Sun Apr 29 23:35:51 2018 +0200

    improve AttributeState compare operator
    
    guess this was the original intention, else the nullptr checks
    would be pointless
    
    Change-Id: Ifb41b125c6d297c76c1d1b5c06c8f9f127b8e613
    Reviewed-on: https://gerrit.libreoffice.org/53644
    Tested-by: Jenkins <[email protected]>
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/forms/source/richtext/rtattributes.hxx 
b/forms/source/richtext/rtattributes.hxx
index a47c5e22abd3..6f79286f653f 100644
--- a/forms/source/richtext/rtattributes.hxx
+++ b/forms/source/richtext/rtattributes.hxx
@@ -115,10 +115,10 @@ namespace frm
         if ( !pItemHandleItem && _rRHS.pItemHandleItem )
             return false;
 
-        if ( !pItemHandleItem && !_rRHS.pItemHandleItem )
+        if ( pItemHandleItem == _rRHS.pItemHandleItem )
             return true;
 
-        return pItemHandleItem == _rRHS.pItemHandleItem;
+        return *pItemHandleItem == *_rRHS.pItemHandleItem;
     }
 
     class IMultiAttributeDispatcher
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to