Only update bbox widths when the boxes exist

This commit is contained in:
Davide P. Cervone 2015-03-07 11:18:55 -05:00
parent d6bb1f55d5
commit 8b9c18e1b4

View File

@ -1339,7 +1339,7 @@
//
// Add the super- and subscripts
//
var x = BBOX.w; subbox.w += s; supbox.w += s;
var x = BBOX.w; if (sub) subbox.w += s; if (sup) supbox.w += s;
if (!sup) {
if (sub) {
v = Math.max(v,CHTML.TEX.sub1,sscale*subbox.h-(4/5)*ex,values.subscriptshift);