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

write error - if resize table range contains autofilter range

parent fa103c1d
...@@ -13239,12 +13239,15 @@ ...@@ -13239,12 +13239,15 @@
var intersectionTables = this.model.autoFilters.getTableIntersectionRange(range); var intersectionTables = this.model.autoFilters.getTableIntersectionRange(range);
if (0 < intersectionTables.length) { if (0 < intersectionTables.length) {
var tablePart = intersectionTables[0]; var tablePart = intersectionTables[0];
if (range.r1 !== tablePart.Ref.r1)//первая строка таблицы не равно первой строке выделенного диапазона if (range.r1 !== tablePart.Ref.r1)//первая строка таблицы не равна первой строке выделенного диапазона
{ {
res = c_oAscError.ID.FTChangeTableRangeError; res = c_oAscError.ID.FTChangeTableRangeError;
} else if (intersectionTables.length !== 1)//выделено несколько таблиц } else if (intersectionTables.length !== 1)//выделено несколько таблиц
{ {
res = c_oAscError.ID.FTRangeIncludedOtherTables; res = c_oAscError.ID.FTRangeIncludedOtherTables;
}else if (this.model.AutoFilter && this.model.AutoFilter.Ref && this.model.AutoFilter.Ref.isIntersect(range))
{
res = c_oAscError.ID.FTChangeTableRangeError;
} }
} else { } else {
res = c_oAscError.ID.FTChangeTableRangeError; res = c_oAscError.ID.FTChangeTableRangeError;
......
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