sc/source/ui/view/output2.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit b959b6ba7c3a7385e353ea2fa617b82e177960a0 Author: Eike Rathke <er...@redhat.com> Date: Tue Oct 6 15:56:10 2015 +0200
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 <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx index cd63e9d..7368322 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
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits