Commit 6c93dcb2 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с принятием/отклонением изменений внутри формул (баг 31154).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66953 954022d7-b5bf-4e40-9824-e11837661b57
parent 1fad33bc
...@@ -1651,6 +1651,12 @@ CMathContent.prototype.private_CorrectSelectionPos = function() ...@@ -1651,6 +1651,12 @@ CMathContent.prototype.private_CorrectSelectionPos = function()
}; };
CMathContent.prototype.private_CorrectCurPos = function() CMathContent.prototype.private_CorrectCurPos = function()
{ {
if (this.Content.length <= 0)
{
this.CurPos = 0;
return;
}
if (this.CurPos > this.Content.length - 1) if (this.CurPos > this.Content.length - 1)
{ {
this.CurPos = this.Content.length - 1; this.CurPos = this.Content.length - 1;
......
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