[Libreoffice-commits] core.git: svx/source

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Thu Apr 22 04:13:27 UTC 2021


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

New commits:
commit bfe800f773b0fe945452dc59205c156d0fc69462
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Wed Apr 21 22:41:33 2021 +0200
Commit:     Mike Kaganski <mike.kaganski at 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.kaganski at 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);
 }
 


More information about the Libreoffice-commits mailing list