sw/source/core/inc/rolbck.hxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3669bb966f709089f43111b5ca1057bfe4a22697
Author: Caolán McNamara <caol...@redhat.com>
Date:   Sun Jul 15 20:46:27 2012 +0100

    Resolves: fdo#52013 use vector::insert instead
    
    Change-Id: Ie12e5b11196b1b0f919bd18f28a0b86f60cc6513
    Signed-off-by: Takeshi Abe <t...@fixedpoint.jp>

diff --git a/sw/source/core/inc/rolbck.hxx b/sw/source/core/inc/rolbck.hxx
index efb6f41..cd5a947 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 );
     }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to