Commit 052689a0 authored by Ilya Kirillov's avatar Ilya Kirillov

Fix bug #32552 Устранено падение при работе с формулами в рецензировании.

parent 30380ed7
...@@ -1755,7 +1755,15 @@ CMathContent.prototype.SplitContent = function(NewContent, ContentPos, Depth) ...@@ -1755,7 +1755,15 @@ CMathContent.prototype.SplitContent = function(NewContent, ContentPos, Depth)
}; };
CMathContent.prototype.Add_ToContent = function(Pos, Item) CMathContent.prototype.Add_ToContent = function(Pos, Item)
{ {
this.Internal_Content_Add(Pos, Item); if (Item && para_Run === Item.Type)
{
var MathRun = new ParaRun(Item.Get_Paragraph(), true);
this.Internal_Content_Add(Pos, MathRun);
}
else
{
this.Internal_Content_Add(Pos, Item);
}
}; };
CMathContent.prototype.Concat_ToEnd = function(NewItems) CMathContent.prototype.Concat_ToEnd = function(NewItems)
{ {
......
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