Commit dd153d95 authored by Boris Kocherov's avatar Boris Kocherov

[erp5_only_office] fix clean region before olap_wizard generate new table

parent c0deba78
...@@ -157,6 +157,7 @@ DocsAPI.DocEditor.version = function () { ...@@ -157,6 +157,7 @@ DocsAPI.DocEditor.version = function () {
return RSVP.Queue() return RSVP.Queue()
.push(function () { .push(function () {
var clean_range = s.worksheet.getRange3(0, 0, 10000, 10000);
// var active = s.GetActiveCell(); // var active = s.GetActiveCell();
// var row = active.GetRow(); // var row = active.GetRow();
// var col = active.GetCol(); // var col = active.GetCol();
...@@ -166,9 +167,13 @@ DocsAPI.DocEditor.version = function () { ...@@ -166,9 +167,13 @@ DocsAPI.DocEditor.version = function () {
s.worksheet.workbook.dependencyFormulas.lockRecal(); s.worksheet.workbook.dependencyFormulas.lockRecal();
clean_range.cleanAll();
s.worksheet.workbook.handlers.trigger("cleanCellCache",
s.worksheet.getId(), {0: clean_range.bbox},
AscCommonExcel.c_oAscCanChangeColWidth.none);
AscCommonExcel.g_oVLOOKUPCache.clean();
AscCommonExcel.g_oHLOOKUPCache.clean();
// XXX use named ranges for cleaning space
s.worksheet.getRange3(0, 0, 10000, 10000).cleanAll();
// (new Asc.asc_CDefName( // (new Asc.asc_CDefName(
// "name111", // "name111",
// "Sheet1!$A$3:$D$13", // "Sheet1!$A$3:$D$13",
......
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