Commit d8a3157f authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

при переносе а/ф(ф/т) использую функцию moveRef

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63004 954022d7-b5bf-4e40-9824-e11837661b57
parent a3dd3a72
......@@ -1676,7 +1676,6 @@ var maxIndividualValues = 10000;
var diffRow = arnTo.r1 - arnFrom.r1;
var ref;
var range;
var newRange;
var oCurFilter;
//у найденных фильтров меняем Ref + скрытые строчки открываем
for(var i = 0; i < findFilters.length; i++)
......@@ -1685,13 +1684,12 @@ var maxIndividualValues = 10000;
oCurFilter = [];
oCurFilter[i] = findFilters[i].clone(null);
ref = findFilters[i].Ref;
range = ref;
newRange = Asc.Range(range.c1 + diffCol, range.r1 + diffRow, range.c2 + diffCol, range.r2 + diffRow);
findFilters[i].Ref = newRange;
if(findFilters[i].AutoFilter)
findFilters[i].AutoFilter.Ref = newRange;
isUpdate = false;
range = ref;
//move ref
findFilters[i].moveRef(diffCol, diffRow);
isUpdate = false;
if((findFilters[i].AutoFilter && findFilters[i].AutoFilter.FilterColumns && findFilters[i].AutoFilter.FilterColumns.length) || (findFilters[i].FilterColumns && findFilters[i].FilterColumns.length))
{
aWs.setRowHidden(false, ref.r1, ref.r2);
......
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