[Libreoffice-commits] core.git: editeng/source

Caolán McNamara caolanm at redhat.com
Wed Sep 11 02:15:12 PDT 2013


 editeng/source/editeng/editdoc.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 08163c1cb3039e42f093e6485f8321d6381446ec
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Sep 11 10:13:17 2013 +0100

    single arg String::Erase erases to end of string
    
    Change-Id: Ifc77b9d0b83a784ec4e4659b83fe8356e54e279f

diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 19f0186..4439615 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -1709,7 +1709,7 @@ void ContentNode::Append(const XubString& rStr)
 
 void ContentNode::Erase(sal_uInt16 nPos)
 {
-    maString = maString.replaceAt(nPos, 1, "");
+    maString = maString.copy(0, nPos);
 }
 
 void ContentNode::Erase(sal_uInt16 nPos, sal_uInt16 nCount)


More information about the Libreoffice-commits mailing list