diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-04-21 22:41:33 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-04-22 06:12:45 +0200 |
commit | bfe800f773b0fe945452dc59205c156d0fc69462 (patch) | |
tree | 44d5c63b1f7822fea4f06070f031c18ffb547450 /svx | |
parent | 41145efffe9d5af358a52b9e114bb01b98b3d7c2 (diff) |
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@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdundo.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |