Commit 83d3f290 authored by GoshaZotov's avatar GoshaZotov

fix error: copy/paste part of format table without style

parent 856d6a29
......@@ -9397,7 +9397,7 @@
{
var table = tables[0];
var styleInfo = table.TableStyleInfo;
var styleForCurTable = t.model.workbook.TableStyles.AllStyles[styleInfo.Name];
var styleForCurTable = styleInfo ? t.model.workbook.TableStyles.AllStyles[styleInfo.Name] : null;
if (activeCellsPasteFragment.containsRange(table.Ref))
{
......@@ -9511,11 +9511,11 @@
}
var tableDxf = getTableDxf(pasteRow, pasteCol, newVal);
if(tableDxf.blocalArea)
if(tableDxf && tableDxf.blocalArea)
{
pastedRangeProps.tableDxfLocal = tableDxf.dxf;
}
else
else if(tableDxf)
{
pastedRangeProps.tableDxf = tableDxf.dxf;
}
......
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