summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/rolbck.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/inc/rolbck.hxx')
-rw-r--r--sw/source/core/inc/rolbck.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/inc/rolbck.hxx b/sw/source/core/inc/rolbck.hxx
index efb6f41cf331..cd5a9473e0ef 100644
--- a/sw/source/core/inc/rolbck.hxx
+++ b/sw/source/core/inc/rolbck.hxx
@@ -402,7 +402,8 @@ public:
{
SwpHstry::iterator itSourceBegin = pIns->m_SwpHstry.begin() + nStart;
SwpHstry::iterator itSourceEnd = pIns->m_SwpHstry.end();
- std::copy( itSourceBegin, itSourceEnd, m_SwpHstry.begin() + nPos );
+ if (itSourceBegin == itSourceEnd) return;
+ m_SwpHstry.insert(m_SwpHstry.begin() + nPos, itSourceBegin, itSourceEnd);
pIns->m_SwpHstry.erase( itSourceBegin, itSourceEnd );
}