summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdundo.cxx2
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);
}