[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - sc/source
Eike Rathke
erack at redhat.com
Wed Oct 7 01:01:15 PDT 2015
sc/source/ui/view/output2.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit b959b6ba7c3a7385e353ea2fa617b82e177960a0
Author: Eike Rathke <erack at 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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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
More information about the Libreoffice-commits
mailing list