summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-10-06 15:56:10 +0200
committerEike Rathke <erack@redhat.com>2015-10-06 16:12:16 +0200
commitb94eccd1d1bb7e1a849e6a024acf84b7a7c12ed3 (patch)
treef5c03a307bd6c1a19b913badc27846286abd9fcf
parent70409a450f62736885cf596991cdb7b42a19a88a (diff)
Resolves: tdf#78897 do not cache/reuse a repeat-filled string
Column widths or fonts or sizes may differ. Change-Id: I1b4be9a6a6158e10439895534a8cb99c2ca408b7
-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 8a727f5b7f6c..6c44bf34cc58 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -507,6 +507,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