Avoid problem with empty base element
This commit is contained in:
parent
0714de5336
commit
bea44b3029
|
@ -2260,11 +2260,13 @@
|
||||||
delta = 1.3*bbox.ic + .05; // make faked IC be closer to expeted results
|
delta = 1.3*bbox.ic + .05; // make faked IC be closer to expeted results
|
||||||
}
|
}
|
||||||
var bmml = this.data[this.base];
|
var bmml = this.data[this.base];
|
||||||
|
if (bmml) {
|
||||||
if ((bmml.type === "mrow" || bmml.type === "mstyle") && bmml.data.length === 1) bmml = bmml.data[0];
|
if ((bmml.type === "mrow" || bmml.type === "mstyle") && bmml.data.length === 1) bmml = bmml.data[0];
|
||||||
if (bmml && (bmml.type === "mi" || bmml.type === "mo")) {
|
if (bmml.type === "mi" || bmml.type === "mo") {
|
||||||
if (bmml.data.join("").length === 1 && bbox.rscale === 1 && !bbox.sH &&
|
if (bmml.data.join("").length === 1 && bbox.rscale === 1 && !bbox.sH &&
|
||||||
!bmml.Get("largeop")) {u = v = 0}
|
!bmml.Get("largeop")) {u = v = 0}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
values.subscriptshift = (values.subscriptshift === "" ? 0 : this.CHTMLlength2em(values.subscriptshift));
|
values.subscriptshift = (values.subscriptshift === "" ? 0 : this.CHTMLlength2em(values.subscriptshift));
|
||||||
values.superscriptshift = (values.superscriptshift === "" ? 0 : this.CHTMLlength2em(values.superscriptshift));
|
values.superscriptshift = (values.superscriptshift === "" ? 0 : this.CHTMLlength2em(values.superscriptshift));
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue
Block a user