diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-11 10:13:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-11 10:14:51 +0100 |
commit | 08163c1cb3039e42f093e6485f8321d6381446ec (patch) | |
tree | 5f636d71107accdba774a1ad59dcad20e7476623 /editeng | |
parent | CID#736212 clip word 2 pap bounds (diff) | |
download | core-08163c1cb3039e42f093e6485f8321d6381446ec.tar.gz core-08163c1cb3039e42f093e6485f8321d6381446ec.zip |
single arg String::Erase erases to end of string
Change-Id: Ifc77b9d0b83a784ec4e4659b83fe8356e54e279f
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 19f01867acf0..4439615c9404 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) |