Feature #2132 - Suppressing a javascrit error.

skala
Ivan Tcholakov 15 years ago
parent 9b07246901
commit 7fa11d7b29
  1. 6
      main/inc/lib/asciimath/ASCIIMathML.js

@ -4628,6 +4628,12 @@ function displayCoord(evt) {
var nl = svgroot.childNodes;
for (var i=0; i<nl.length && nl.item(i).nodeName!="text"; i++);
var cnode = nl.item(i);
// Added by Ivan Tcholakov, 08-JAN-2011.
// Suppresing a javasript error that occurs on Opera 11.
if (typeof cnode != 'object') {
return;
}
//
cnode.mtext = mtext;
cnode.mtext([svgroot.getAttribute("width")-(-7),svgroot.getAttribute("height")-7],"("+getX(evt).toFixed(2)+", "+getY(evt).toFixed(2)+")", "left", "", "11");
/* var dnode = nl.item(i+1);

Loading…
Cancel
Save