diff options
Diffstat (limited to 'sw/source/core/undo/unattr.cxx')
-rw-r--r-- | sw/source/core/undo/unattr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx index 80d068cb5e0a..87e68c3a4870 100644 --- a/sw/source/core/undo/unattr.cxx +++ b/sw/source/core/undo/unattr.cxx @@ -142,7 +142,7 @@ void SwUndoFormatAttr::Init() } } else if ( pDoc->GetSections().Contains( m_pFormat )) { m_nNodeIndex = m_pFormat->GetContent().GetContentIdx()->GetIndex(); - } else if ( 0 != dynamic_cast< SwTableBoxFormat* >( m_pFormat ) ) { + } else if ( dynamic_cast< SwTableBoxFormat* >( m_pFormat ) != nullptr ) { SwTableBox * pTableBox = SwIterator<SwTableBox,SwFormat>( *m_pFormat ).First(); if ( pTableBox ) { m_nNodeIndex = pTableBox->GetSttIdx(); |