From 214a23050495261d8dafb8b77641cebd9da59bf6 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 6 May 2014 07:00:29 -0400 Subject: [PATCH] Make sure svg is defined before using its width --- unpacked/jax/output/SVG/autoload/multiline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/jax/output/SVG/autoload/multiline.js b/unpacked/jax/output/SVG/autoload/multiline.js index 62e9f4c50..9d6e82194 100644 --- a/unpacked/jax/output/SVG/autoload/multiline.js +++ b/unpacked/jax/output/SVG/autoload/multiline.js @@ -336,7 +336,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () { if (state.last && svg.X) {svg.X = 0} line.Add(svg,line.w,0,true); } - if (state.first && svg.w === 0) {state.nextIsFirst = true} + if (state.first && svg && svg.w === 0) {state.nextIsFirst = true} else {delete state.nextIsFirst} } });