Commit db7ded0b authored by GoshaZotov's avatar GoshaZotov Committed by Alexander.Trofimov

Bug #32336 - [Undo&Redo] Ошибка ul(...).X1b is not a function при вставке...

Bug #32336 - [Undo&Redo] Ошибка ul(...).X1b is not a function при вставке форматированной таблицы поверх другой таблицы на скопированном листе
parent c894f20d
......@@ -2243,11 +2243,22 @@ Workbook.prototype.insertWorksheet = function (index, sheet, cwf) {
this.aWorksheetsById[sheet.getId()] = sheet;
this._updateWorksheetIndexes(wsActive);
this._insertWorksheetFormula(index);
this._insertTablePartsName(sheet);
//восстанавливаем список ячеек с формулами для sheet
this.cwf[sheet.getId()] = cwf;
sheet._BuildDependencies(cwf.cells);
sortDependency(this);
};
Workbook.prototype._insertTablePartsName = function (sheet) {
if(sheet && sheet.TableParts && sheet.TableParts.length)
{
for(var i = 0; i < sheet.TableParts.length; i++)
{
var oNewTable = sheet.TableParts[i];
this.dependencyFormulas.addTableName(oNewTable.DisplayName, sheet, oNewTable.Ref);
}
}
};
Workbook.prototype._insertWorksheetFormula=function(index){
if( index > 0 && index < this.aWorksheets.length - 1 ){
var oWsTo = this.aWorksheets[index - 1];
......
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