Commit 17deb9fd authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

stack errors

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