Commit 15189e6f 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@58543 954022d7-b5bf-4e40-9824-e11837661b57
parent ea0b37fc
......@@ -2123,28 +2123,33 @@ var gUndoInsDelCellsFlag = true;
searchRangeInTableParts: function(range)
{
var aWs = this._getCurrentWS();
var tableRange;
var isIntersect = false;
var containRange;
if(aWs.TableParts)
var containRange, tableRange;
var tableParts = aWs.TableParts;
if(tableParts)
{
for(var i = 0; i < aWs.TableParts.length; i++)
for(var i = 0; i < tableParts.length; i++)
{
if(aWs.TableParts[i].Ref)
{
tableRange = aWs.TableParts[i].Ref;
}
if(!tableParts[i].Ref)
continue;
if(tableRange.containsRange(range))
{
containRange = {tableRange: tableRange, id: i};
break;
}
else if(range.isIntersect(tableRange))
tableRange = tableParts[i].Ref;
if(range.isIntersect(tableRange))
{
isIntersect = true;
break;
if(tableRange.containsRange(range))
{
containRange = {id: i};
break;
}
else
{
isIntersect = true;
break;
}
}
}
}
......
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