svx/source/svdraw/svdundo.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bfe800f773b0fe945452dc59205c156d0fc69462
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Wed Apr 21 22:41:33 2021 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Thu Apr 22 06:12:45 2021 +0200

    tdf#141816: fix a thinko
    
    This must check if they are different, not the other way around
    
    Change-Id: Id9b7a51f13d5d5c48077822ba18f0257b36ea226
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114422
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx
index 1805c06236e3..2e81d8acd91f 100644
--- a/svx/source/svdraw/svdundo.cxx
+++ b/svx/source/svdraw/svdundo.cxx
@@ -995,7 +995,7 @@ SdrUndoObjSetText::~SdrUndoObjSetText()
 bool SdrUndoObjSetText::IsDifferent() const
 {
     if (!pOldText || !pNewText)
-        return !pOldText && !pNewText;
+        return pOldText || pNewText;
     return !(*pOldText == *pNewText);
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to