summaryrefslogtreecommitdiff
path: root/vcl/source/edit/textdoc.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-08-12 13:02:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-08-12 13:08:33 +0100
commit82c2d3fe69f9732d2c178ad184a0ec2a598d386f (patch)
treef31c134e8c8295c630d4f7f77cc97052f0c25cdf /vcl/source/edit/textdoc.cxx
parentc0cf59e9e227f02d85ab3528913522abcebc713c (diff)
fix up some other single arg String::Erase conversions
Change-Id: Id04301261c100cb122d63fe75324967cf95b23ab
Diffstat (limited to 'vcl/source/edit/textdoc.cxx')
-rw-r--r--vcl/source/edit/textdoc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/edit/textdoc.cxx b/vcl/source/edit/textdoc.cxx
index 96faa634e227..1dea032d652e 100644
--- a/vcl/source/edit/textdoc.cxx
+++ b/vcl/source/edit/textdoc.cxx
@@ -343,7 +343,7 @@ TextNode* TextNode::Split( sal_uInt16 nPos, sal_Bool bKeepEndingAttribs )
if ( nPos < maText.getLength() )
{
aNewText = maText.copy( nPos );
- maText = maText.replaceAt( nPos, 1, "" );
+ maText = maText.copy(0, nPos);
}
TextNode* pNew = new TextNode( aNewText );