Kaydet (Commit) b959b6ba authored tarafından Eike Rathke's avatar Eike Rathke Kaydeden (comit) Caolán McNamara

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 b94eccd1)
Reviewed-on: https://gerrit.libreoffice.org/19198Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 068b3eaf
...@@ -509,6 +509,9 @@ bool ScDrawStringsVars::SetText( ScRefCellValue& rCell ) ...@@ -509,6 +509,9 @@ bool ScDrawStringsVars::SetText( ScRefCellValue& rCell )
nChar = aString[ nPos + 1 ]; nChar = aString[ nPos + 1 ];
// delete placeholder and char to repeat // delete placeholder and char to repeat
aString = aString.replaceAt( nPos, 2, "" ); aString = aString.replaceAt( nPos, 2, "" );
// Do not cache/reuse a repeat-filled string, column widths
// or fonts or sizes may differ.
maLastCell.clear();
} }
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment