+ let Cr_min = -2.0;
+ let Cr_max = 1.0;
+ try {
+ Cr_min = parseFloat(gPref.getCharPref("mandelbrot.last_image.Cr_min"));
+ Cr_max = parseFloat(gPref.getCharPref("mandelbrot.last_image.Cr_max"));
+ }
+ catch (e) { }
+ if ((Cr_min < -2) || (Cr_min > 2) ||
+ (Cr_max < -2) || (Cr_max > 2) || (Cr_min >= Cr_max)) {
+ Cr_min = -2.0; Cr_max = 1.0;
+ }
+ gPref.setCharPref("mandelbrot.last_image.Cr_min", Cr_min);
+ gPref.setCharPref("mandelbrot.last_image.Cr_max", Cr_max);
+
+ let Ci_min = -1.5;
+ let Ci_max = 1.5;
+ try {
+ Ci_min = parseFloat(gPref.getCharPref("mandelbrot.last_image.Ci_min"));
+ Ci_max = parseFloat(gPref.getCharPref("mandelbrot.last_image.Ci_max"));
+ }
+ catch (e) { }
+ if ((Ci_min < -2) || (Ci_min > 2) ||
+ (Ci_max < -2) || (Ci_max > 2) || (Ci_min >= Ci_max)) {
+ Ci_min = -2.0; Ci_max = 1.0;
+ }
+ gPref.setCharPref("mandelbrot.last_image.Ci_min", Ci_min);
+ gPref.setCharPref("mandelbrot.last_image.Ci_max", Ci_max);
+