summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/undo/unattr.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx
index 5b93949d2bc5..b880309dfb24 100644
--- a/sw/source/core/undo/unattr.cxx
+++ b/sw/source/core/undo/unattr.cxx
@@ -648,8 +648,7 @@ void SwUndoResetAttr::RepeatImpl(::sw::RepeatContext & rContext)
void SwUndoResetAttr::SetAttrs( const std::set<sal_uInt16> &rAttrs )
{
- m_Ids.clear();
- m_Ids.insert( rAttrs.begin(), rAttrs.end() );
+ m_Ids = rAttrs;
}
SwUndoAttr::SwUndoAttr( const SwPaM& rRange, const SfxPoolItem& rAttr,