Commit 4ff4381f authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed previous commit.

parent f0a6e378
...@@ -343,10 +343,10 @@ CInlineLevelSdt.prototype.GetBoundingPolygon = function() ...@@ -343,10 +343,10 @@ CInlineLevelSdt.prototype.GetBoundingPolygon = function()
}; };
CInlineLevelSdt.prototype.DrawContentControlsTrack = function(isHover) CInlineLevelSdt.prototype.DrawContentControlsTrack = function(isHover)
{ {
if (!this.Paragraph) if (!this.Paragraph && this.Paragraph.LogicDocument)
return; return;
var oDrawingDocument = this.Paragraph.Get_DrawingDocument(); var oDrawingDocument = this.Paragraph.LogicDocument.Get_DrawingDocument();
oDrawingDocument.OnDrawContentControl(this.GetId(), isHover ? c_oContentControlTrack.Hover : c_oContentControlTrack.In, this.GetBoundingPolygon(), this.Get_ParentTextTransform()); oDrawingDocument.OnDrawContentControl(this.GetId(), isHover ? c_oContentControlTrack.Hover : c_oContentControlTrack.In, this.GetBoundingPolygon(), this.Get_ParentTextTransform());
}; };
//---------------------------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------------------------
......
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