Commit 4c6efb1d authored by GoshaZotov's avatar GoshaZotov

fix for #32505

[Copy&Paste] Cannot read property 'I' of null при применении Select Data после копирования исходной таблицы, если открыто окно Resize table
parent 5d84250e
...@@ -4720,6 +4720,9 @@ TablePart.prototype.changeRefOnRange = function(range, autoFilters, generateNewT ...@@ -4720,6 +4720,9 @@ TablePart.prototype.changeRefOnRange = function(range, autoFilters, generateNewT
{ {
var newTableColumns = []; var newTableColumns = [];
var intersectionRanges = this.Ref.intersection(range); var intersectionRanges = this.Ref.intersection(range);
if(null !== intersectionRanges)
{
for(var i = range.c1; i <= range.c2; i++) for(var i = range.c1; i <= range.c2; i++)
{ {
var tableColumn; var tableColumn;
...@@ -4744,6 +4747,7 @@ TablePart.prototype.changeRefOnRange = function(range, autoFilters, generateNewT ...@@ -4744,6 +4747,7 @@ TablePart.prototype.changeRefOnRange = function(range, autoFilters, generateNewT
this.TableColumns = newTableColumns; this.TableColumns = newTableColumns;
} }
}
this.Ref = Asc.Range(range.c1, range.r1, range.c2, range.r2); this.Ref = Asc.Range(range.c1, range.r1, range.c2, range.r2);
//event //event
......
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