Commit 34ffd4d2 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix cache empty cells with font

parent 0a5ebb60
......@@ -4496,12 +4496,12 @@
str = c.getValue2();
if (0 < str.length) {
strCopy = str[0];
if (!(tm = AscCommonExcel.g_oCacheMeasureEmpty.get(strCopy))) {
if (!(tm = AscCommonExcel.g_oCacheMeasureEmpty.get(strCopy.format))) {
// Без текста не будет толка
strCopy = strCopy.clone();
strCopy.text = 'A';
tm = this._roundTextMetrics(this.stringRender.measureString([strCopy], fl));
AscCommonExcel.g_oCacheMeasureEmpty.add(strCopy, tm);
AscCommonExcel.g_oCacheMeasureEmpty.add(strCopy.format, tm);
}
this._updateRowHeight(tm, col, row, isMerged, fMergedRows);
}
......
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