summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-10-06 15:56:10 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-10-07 08:00:47 +0000
commitb959b6ba7c3a7385e353ea2fa617b82e177960a0 (patch)
tree2dbaadef29011e788a249f25ca89231ac8551465
parent068b3eaf44ba39723024b2a1261b0f22d3cacf9b (diff)
Resolves: tdf#78897 do not cache/reuse a repeat-filled string
Column widths or fonts or sizes may differ. Change-Id: I1b4be9a6a6158e10439895534a8cb99c2ca408b7 (cherry picked from commit b94eccd1d1bb7e1a849e6a024acf84b7a7c12ed3) Reviewed-on: https://gerrit.libreoffice.org/19198 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/ui/view/output2.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index cd63e9dc3a85..736832233679 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -509,6 +509,9 @@ bool ScDrawStringsVars::SetText( ScRefCellValue& rCell )
nChar = aString[ nPos + 1 ];
// delete placeholder and char to repeat
aString = aString.replaceAt( nPos, 2, "" );
+ // Do not cache/reuse a repeat-filled string, column widths
+ // or fonts or sizes may differ.
+ maLastCell.clear();
}
}
else