Use proper value of base scaling to reset u and v in super- and subscript positioning. Resolves issue #804.

This commit is contained in:
Davide P. Cervone 2014-09-14 11:02:16 -04:00
parent ca196c8e0d
commit 9bf55785f0

View File

@ -2736,7 +2736,7 @@
} }
if (this.data[this.base] && if (this.data[this.base] &&
(this.data[this.base].type === "mi" || this.data[this.base].type === "mo")) { (this.data[this.base].type === "mi" || this.data[this.base].type === "mo")) {
if (this.data[this.base].data.join("").length === 1 && base.bbox.scale === 1 && if (this.data[this.base].data.join("").length === 1 && children[0].scale === 1 &&
!this.data[this.base].Get("largeop")) {u = v = 0} !this.data[this.base].Get("largeop")) {u = v = 0}
} }
var min = this.getValues("subscriptshift","superscriptshift"); var min = this.getValues("subscriptshift","superscriptshift");