[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Tue Oct 6 07:12:52 PDT 2015


 sc/source/ui/view/output2.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit b94eccd1d1bb7e1a849e6a024acf84b7a7c12ed3
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

diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 8a727f5..6c44bf3 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


More information about the Libreoffice-commits mailing list