handle case where options are not passed.
This commit is contained in:
parent
68369285fd
commit
ba22166399
|
@ -2610,7 +2610,7 @@
|
||||||
}
|
}
|
||||||
if (this.CHTMLlineBreaks()) {
|
if (this.CHTMLlineBreaks()) {
|
||||||
this.CHTMLmultiline(node);
|
this.CHTMLmultiline(node);
|
||||||
if (options.autowidth) node.style.width = "";
|
if ((options||{}).autowidth) node.style.width = "";
|
||||||
} else {
|
} else {
|
||||||
if (hasNegative && bbox.w) node.style.width = CHTML.Em(Math.max(0,bbox.w));
|
if (hasNegative && bbox.w) node.style.width = CHTML.Em(Math.max(0,bbox.w));
|
||||||
if (bbox.w < 0) node.style.marginRight = CHTML.Em(bbox.w);
|
if (bbox.w < 0) node.style.marginRight = CHTML.Em(bbox.w);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user