summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/undo/SwUndoFmt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/undo/SwUndoFmt.cxx b/sw/source/core/undo/SwUndoFmt.cxx
index c9287f5f0c62..26e2f4ae0092 100644
--- a/sw/source/core/undo/SwUndoFmt.cxx
+++ b/sw/source/core/undo/SwUndoFmt.cxx
@@ -46,7 +46,7 @@ void SwUndoFormatCreate::UndoImpl(::sw::UndoRedoContext &)
{
if (pNew)
{
- if (sNewName.isEmpty() && pNew)
+ if (sNewName.isEmpty())
sNewName = pNew->GetName();
if (!sNewName.isEmpty())