Skip to content

Commit 214a230

Browse files
committed
Make sure svg is defined before using its width
1 parent 3ebb153 commit 214a230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpacked/jax/output/SVG/autoload/multiline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
336336
if (state.last && svg.X) {svg.X = 0}
337337
line.Add(svg,line.w,0,true);
338338
}
339-
if (state.first && svg.w === 0) {state.nextIsFirst = true}
339+
if (state.first && svg && svg.w === 0) {state.nextIsFirst = true}
340340
else {delete state.nextIsFirst}
341341
}
342342
});

0 commit comments

Comments
 (0)