diff options
-rw-r--r-- | sw/source/core/undo/unattr.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx index 905c55d97243..9dcb56ae83a0 100644 --- a/sw/source/core/undo/unattr.cxx +++ b/sw/source/core/undo/unattr.cxx @@ -99,6 +99,8 @@ SwUndoFormatAttr::SwUndoFormatAttr( const SfxItemSet& rOldSet, , m_nFormatWhich( rChgFormat.Which() ) , m_bSaveDrawPt( bSaveDrawPt ) { + assert(m_sFormatName.getLength()); + Init( rChgFormat ); } @@ -111,6 +113,8 @@ SwUndoFormatAttr::SwUndoFormatAttr( const SfxPoolItem& rItem, SwFormat& rChgForm , m_nFormatWhich( rChgFormat.Which() ) , m_bSaveDrawPt( bSaveDrawPt ) { + assert(m_sFormatName.getLength()); + m_pOldSet->Put( rItem ); Init( rChgFormat ); } |