add scale field in image settings, add extra button for drawing image right away#
[mandelbrot.git] / xulapp / chrome / mandelbrot / content / mandelbrot.js
index 02654971e238b88020bf35a64a7046f7c1132de7..cf4927af4a961069b679135d1e86436104db96ad 100644 (file)
@@ -137,7 +137,7 @@ function drawLine(line, dimensions, canvas, context, iterMax, algorithm) {
 
     if (img_y < canvas.height)
       setTimeout(drawLine, 0, img_y, dimensions, canvas, context, iterMax, algorithm);
 
     if (img_y < canvas.height)
       setTimeout(drawLine, 0, img_y, dimensions, canvas, context, iterMax, algorithm);
-    else
+    else if (gStartTime)
       EndCalc();
 }
 
       EndCalc();
 }