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

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52553 954022d7-b5bf-4e40-9824-e11837661b57
parent 83e53c22
......@@ -8417,17 +8417,20 @@ Paragraph.prototype =
}
// Если мы закончили в математическом элементе и в нем нет селекта, тогда отменяем селект совсем и ставим курсор в формуле
if ( this.Selection.EndPos2 === this.Selection.StartPos2 && undefined !== this.Content[this.Selection.StartPos2] && para_Math === this.Content[this.Selection.StartPos2].Type && true === this.Content[this.Selection.StartPos2].Selection_IsEmpty() )
if ( g_mouse_event_type_up === MouseEvent.Type )
{
this.Selection_Remove();
if ( this.Selection.EndPos2 === this.Selection.StartPos2 && undefined !== this.Content[this.Selection.StartPos2] && para_Math === this.Content[this.Selection.StartPos2].Type && true === this.Content[this.Selection.StartPos2].Selection_IsEmpty() )
{
this.Selection_Remove();
this.CurPos.ContentPos2 = this.Selection.EndPos2;
this.Set_ContentPos( Pos, true, Temp.Line );
this.CurPos.ContentPos2 = this.Selection.EndPos2;
this.Set_ContentPos( Pos, true, Temp.Line );
this.RecalculateCurPos();
this.RecalculateCurPos();
}
else
this.CurPos.ContentPos2 = -1;
}
else
this.CurPos.ContentPos2 = -1;
if ( this.Selection.EndPos == this.Selection.StartPos && g_mouse_event_type_up === MouseEvent.Type && ( this.Selection.EndPos2 != this.Selection.StartPos2 || undefined === this.Content[this.Selection.StartPos2] || para_Math !== this.Content[this.Selection.StartPos2].Type ) )
{
......
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