diff --git a/main/inc/lib/fckeditor/editor/plugins/asciisvg/ASCIIsvgPI.js b/main/inc/lib/fckeditor/editor/plugins/asciisvg/ASCIIsvgPI.js index 97b7b06228..e3fef3c065 100644 --- a/main/inc/lib/fckeditor/editor/plugins/asciisvg/ASCIIsvgPI.js +++ b/main/inc/lib/fckeditor/editor/plugins/asciisvg/ASCIIsvgPI.js @@ -1143,6 +1143,13 @@ function drawPictures() { //xmin,xmax,ymin,ymax,xscl,yscl,labels,xgscl,ygscl,width,height plotcommands(see blow) //plotcommands: type,eq1,eq2,startmaker,endmarker,xmin,xmax,color,strokewidth,strokedash function parseShortScript(sscript,gw,gh) { + + // Added by Ivan Tcholakov, 07-JAN-2011. + if (typeof picture == 'undefined') { + return; + } + // + if (sscript == null) { initialized = false; sscript = picture.sscr;