commit 8b9c18e1b4d54c251edef182abe77c75309cba77
parent d6bb1f55d5127f447aee6dbf0a02c730cbe3a8d1
Author: Davide P. Cervone <dpvc@union.edu>
Date: Sat, 7 Mar 2015 11:18:55 -0500
Only update bbox widths when the boxes exist
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js
@@ -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);