www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit dac51a9f69ffd9e6559c815b264cd9c25fc78d30
parent 0182094a3702d526a44e0141e276b019a1d78ae2
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Wed, 14 Jan 2015 11:12:22 -0500

Fix problem with empty scripts in SVG output.  Issue #949.

Diffstat:
Munpacked/jax/output/SVG/autoload/multiline.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/unpacked/jax/output/SVG/autoload/multiline.js b/unpacked/jax/output/SVG/autoload/multiline.js @@ -473,8 +473,8 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () { // if (end.length === 0) { var sup = this.data[this.sup], sub = this.data[this.sub], w = svg.w, data; - if (sup) {data = sup.SVGdata; svg.Add(sup.toSVG(),w+(data.dx||0),data.dy)} - if (sub) {data = sub.SVGdata; svg.Add(sub.toSVG(),w+(data.dx||0),data.dy)} + if (sup) {data = sup.SVGdata||{}; svg.Add(sup.toSVG(),w+(data.dx||0),data.dy)} + if (sub) {data = sub.SVGdata||{}; svg.Add(sub.toSVG(),w+(data.dx||0),data.dy)} } }