Commit cc469450 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #33934

parent 71202663
...@@ -645,7 +645,7 @@ CMathBase.prototype.Draw_Elements = function(PDSE) ...@@ -645,7 +645,7 @@ CMathBase.prototype.Draw_Elements = function(PDSE)
for (var CurPos = StartPos; CurPos <= EndPos; CurPos++ ) for (var CurPos = StartPos; CurPos <= EndPos; CurPos++ )
{ {
this.Content[CurPos].Draw_Elements(PDSE); this.Content[CurPos].Draw_Elements(PDSE);
} }
} }
}; };
...@@ -1868,7 +1868,7 @@ CMathBase.prototype.Draw_HighLights = function(PDSH, bAll) ...@@ -1868,7 +1868,7 @@ CMathBase.prototype.Draw_HighLights = function(PDSH, bAll)
var bAllCont = this.Selection.StartPos !== this.Selection.EndPos; var bAllCont = this.Selection.StartPos !== this.Selection.EndPos;
for (var CurPos = StartPos; CurPos <= EndPos; CurPos++) for (var CurPos = StartPos; CurPos <= EndPos; CurPos++)
this.Content[CurPos].Draw_HighLights(PDSH, bAllCont); this.Content[CurPos].Draw_HighLights(PDSH, bAllCont);
var Bound = this.Get_LineBound(PDSH.Line, PDSH.Range); var Bound = this.Get_LineBound(PDSH.Line, PDSH.Range);
......
...@@ -3939,6 +3939,9 @@ CMathContent.prototype.Get_EndPos = function(BehindEnd, ContentPos, Depth) ...@@ -3939,6 +3939,9 @@ CMathContent.prototype.Get_EndPos = function(BehindEnd, ContentPos, Depth)
}; };
CMathContent.prototype.Draw_HighLights = function(PDSH, bAll) CMathContent.prototype.Draw_HighLights = function(PDSH, bAll)
{ {
if (!this.bRoot && this.Parent && true !== this.ParentElement.Is_ContentUse(this))
return;
var Bound = this.Get_LineBound(PDSH.Line, PDSH.Range); var Bound = this.Get_LineBound(PDSH.Line, PDSH.Range);
PDSH.X = Bound.X; PDSH.X = Bound.X;
......
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