Commit f0463820 authored by Oleg.Korshul's avatar Oleg.Korshul

stack errors

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59227 954022d7-b5bf-4e40-9824-e11837661b57
parent 9229d36f
......@@ -4359,7 +4359,27 @@ asc_docs_api.prototype.sync_EndCatchSelectedElements = function()
_stream["ClearNoAttack"]();
var _count = this.SelectedObjectsStack.length;
_stream["WriteLong"](_count);
var _naturalCount = 0;
for (var i = 0; i < _count; i++)
{
switch (this.SelectedObjectsStack[i].Type)
{
case c_oAscTypeSelectElement.Paragraph:
case c_oAscTypeSelectElement.Header:
case c_oAscTypeSelectElement.Table:
case c_oAscTypeSelectElement.Image:
case c_oAscTypeSelectElement.Hyperlink:
{
++_naturalCount;
break;
}
default:
break;
}
}
_stream["WriteLong"](_naturalCount);
for (var i = 0; i < _count; i++)
{
......@@ -4397,13 +4417,9 @@ asc_docs_api.prototype.sync_EndCatchSelectedElements = function()
break;
}
case c_oAscTypeSelectElement.SpellCheck:
{
// none
break;
}
default:
{
_stream["WriteLong"](255);
// none
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