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

исправлена ошибка при перемещении а/ф и форматированных таблиц

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51267 954022d7-b5bf-4e40-9824-e11837661b57
parent 7e8ad094
......@@ -5870,11 +5870,24 @@
var buttons = this.allButtonAF;
for(var n = 0; n < buttons.length; n++)
{
if(buttons[n].inFilter == ref)
var id;
var idNext;
if(buttons[n].inFilter == ref && findFilters[i] && findFilters[i].result && findFilters[i].result.length)
{
for(var b = 0; b < findFilters[i].result.length; b++)
{
if(buttons[n].id == findFilters[i].result[b].id)
{
id = this._shiftId(buttons[n].id, diffCol, diffRow);
idNext = this._shiftId(buttons[n].idNext, diffCol, diffRow);
findFilters[i].result[b].id = id;
findFilters[i].result[b].idNext = idNext;
break;
}
}
buttons[n].inFilter = newRef;
buttons[n].id = this._shiftId(buttons[n].id, diffCol, diffRow);
buttons[n].idNext = this._shiftId(buttons[n].idNext, diffCol, diffRow);
buttons[n].id = id ? id : this._shiftId(buttons[n].id, diffCol, diffRow);
buttons[n].idNext = idNext ? idNext : this._shiftId(buttons[n].idNext, diffCol, diffRow);
}
}
}
......
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