Commit d3e46cb6 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@52385 954022d7-b5bf-4e40-9824-e11837661b57
parent af8c62e3
...@@ -8979,6 +8979,13 @@ Paragraph.prototype = ...@@ -8979,6 +8979,13 @@ Paragraph.prototype =
StartPos = Temp; StartPos = Temp;
} }
// Проверяем начальный и конечный элемент, если это формулы, тогда надо проверить внутри них селект
if ( undefined != this.Content[this.Selection.StartPos2] && para_Math === this.Content[this.Selection.StartPos2].Type && false === this.Content[this.Selection.StartPos2].Selection_IsEmpty() )
return false;
if ( undefined != this.Content[this.Selection.EndPos2] && para_Math === this.Content[this.Selection.EndPos2].Type && false === this.Content[this.Selection.StartPos2].Selection_IsEmpty() )
return false;
var CheckArray = [para_PageNum, para_Drawing, para_Tab, para_Text, para_Space, para_NewLine, para_Math]; var CheckArray = [para_PageNum, para_Drawing, para_Tab, para_Text, para_Space, para_NewLine, para_Math];
if ( true === bCheckHidden ) if ( true === bCheckHidden )
CheckArray.push( para_End ); CheckArray.push( para_End );
...@@ -12658,6 +12665,8 @@ Paragraph.prototype = ...@@ -12658,6 +12665,8 @@ Paragraph.prototype =
Use : this.Selection.Use, Use : this.Selection.Use,
StartPos : this.Internal_Get_ClearPos(this.Selection.StartPos), StartPos : this.Internal_Get_ClearPos(this.Selection.StartPos),
EndPos : this.Internal_Get_ClearPos(this.Selection.EndPos), EndPos : this.Internal_Get_ClearPos(this.Selection.EndPos),
StartPos : this.Internal_Get_ClearPos(this.Selection.StartPos2),
EndPos : this.Internal_Get_ClearPos(this.Selection.EndPos2),
Flag : this.Selection.Flag Flag : this.Selection.Flag
}; };
...@@ -12682,14 +12691,12 @@ Paragraph.prototype = ...@@ -12682,14 +12691,12 @@ Paragraph.prototype =
PagesPos : ParaState.CurPos.PagesPos PagesPos : ParaState.CurPos.PagesPos
}; };
this.Selection = this.Selection.Start = ParaState.Selection.Start;
{ this.Selection.Use = ParaState.Selection.Use;
Start : ParaState.Selection.Start, this.Selection.StartPos = this.Internal_Get_RealPos(ParaState.Selection.StartPos);
Use : ParaState.Selection.Use, this.Selection.EndPos = this.Internal_Get_RealPos(ParaState.Selection.EndPos);
StartPos : this.Internal_Get_RealPos(ParaState.Selection.StartPos), this.Selection.StartPos2 = this.Internal_Get_RealPos(ParaState.Selection.StartPos2);
EndPos : this.Internal_Get_RealPos(ParaState.Selection.EndPos), this.Selection.EndPos2 = this.Internal_Get_RealPos(ParaState.Selection.EndPos2);
Flag : ParaState.Selection.Flag
};
var CursorPos_max = this.Internal_GetEndPos(); var CursorPos_max = this.Internal_GetEndPos();
var CursorPos_min = this.Internal_GetStartPos(); var CursorPos_min = this.Internal_GetStartPos();
......
...@@ -7580,6 +7580,11 @@ ParaMath.prototype = ...@@ -7580,6 +7580,11 @@ ParaMath.prototype =
console.log( "Selection draw" ); console.log( "Selection draw" );
}, },
Selection_IsEmpty : function()
{
return false;
},
Copy : function() Copy : function()
{ {
var Math = new ParaMath(); var Math = new ParaMath();
......
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