Don't use info.embellished if the SVGdata isn't available (avoids Math Processing Error). Issue #707.

This commit is contained in:
Davide P. Cervone 2014-02-14 10:35:56 -05:00
parent cce9256bf9
commit c52f0dff76

View File

@ -504,7 +504,8 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
//
// Get the default penalty for this location
//
var W = info.scanW, mo = (info.embellished||this); delete info.embellished;
var W = info.scanW, mo = info.embellished; delete info.embellished;
if (!mo || !mo.SVGdata) {mo = this}
var svg = mo.SVGdata, w = svg.w + svg.x;
if (values.linebreakstyle === MML.LINEBREAKSTYLE.AFTER) {W += w; w = 0}
if (W - info.shift === 0) {return false} // don't break at zero width (FIXME?)