summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdotext.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-05 10:41:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-05 11:52:40 +0100
commitcb92e6440cebbdf307e5740325d04d9656440fd8 (patch)
treea56bf907c81133cd7336c05619b6417a9317267b /svx/source/svdraw/svdotext.cxx
parentf58cf57213a300ced1369b17daebc2e9e8251c06 (diff)
match original intent of String::Erase(String::Search))
the single argument String::Erase erased from the passed in index to the end of the string Search returns STRING_NOTFOUND on failure, which results in String::Erase erasing nothing and so leaving the original string untouched. Change-Id: I83939fce2a92c38fbfb62196b7248908117c1e69
Diffstat (limited to 'svx/source/svdraw/svdotext.cxx')
-rw-r--r--svx/source/svdraw/svdotext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index 1615b04c2e21..feefd80e7ecb 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -1011,7 +1011,7 @@ OUString SdrTextObj::TakeObjNameSingul() const
if(aStr2.getLength() > 10)
{
- aStr2 = aStr2.replaceAt(8, 1, "");
+ aStr2 = aStr2.copy(0, 8);
aStr2 += "...";
}