Commit ea0fabf6 authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix Bug 35085

parent 7c29e182
......@@ -167,12 +167,18 @@ CTextBody.prototype =
Get_Theme : function()
{
return this.parent.Get_Theme();
if(this.parent){
return this.parent.Get_Theme();
}
return null;
},
Get_ColorMap: function()
{
return this.parent.Get_ColorMap();
if(this.parent){
return this.parent.Get_ColorMap();
}
return null;
},
setParent: function(pr)
......
......@@ -211,11 +211,17 @@ CDocumentContent.prototype.Get_PageContentStartPos2 = function(StartPageIndex, S
};
CDocumentContent.prototype.Get_Theme = function()
{
return this.Parent.Get_Theme();
if(this.Parent){
return this.Parent.Get_Theme();
}
return null;
};
CDocumentContent.prototype.Get_ColorMap = function()
{
return this.Parent.Get_ColorMap();
if(this.Parent){
return this.Parent.Get_ColorMap();
}
return null;
};
CDocumentContent.prototype.Get_PageLimits = function(PageIndex)
{
......
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