summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-11-28 23:29:35 +0200
committerTor Lillqvist <tml@iki.fi>2012-11-28 23:29:35 +0200
commit32e534a3d0fc2f5ff2fc2fe18c7d31f5b619031d (patch)
tree8df8e7251c2a6631d20fad7e187fdf243502f016 /sc
parent1f90b032a6d8f2fce49334190e321b81832e3466 (diff)
OUString::replaceAt() does not modify in-place
Change-Id: I97460379a248d13c9766b315a069647b70770135
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/chgtrack.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx
index 65cd99d920ec..61094e4a9611 100644
--- a/sc/source/core/tool/chgtrack.cxx
+++ b/sc/source/core/tool/chgtrack.cxx
@@ -772,7 +772,7 @@ void ScChangeActionIns::GetDescription(
aBuf.append(GetRefString(GetBigRange(), pDoc));
rtl::OUString aRangeStr = aBuf.makeStringAndClear();
- aRsc.replaceAt(nPos, 2, aRangeStr); // replace '#1' with the range string.
+ aRsc = aRsc.replaceAt(nPos, 2, aRangeStr); // replace '#1' with the range string.
aBuf.append(rStr).append(aRsc);
rStr = aBuf.makeStringAndClear();