[Kst] branches/work/kst/portto4/kst/src/libkstapp

Peter Kümmel syntheticpp at gmx.net
Thu Oct 25 18:16:13 UTC 2012


SVN commit 1322449 by kuemmel:

catch a div 0 and the resulting endless loop

 M  +3 -0      plotaxis.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/plotaxis.cpp #1322448:1322449
@@ -862,6 +862,9 @@
     if (base_jd < min_jd) base_jd = min_jd;
     if (base_jd > max_jd) base_jd = min_jd;
   }
+
+  //TODO Why could range_u be 0? Then it hangs in while(1)
+  if (range_u != 0)
   tickspacing = tickspacing_u * range/range_u;
 
 


More information about the Kst mailing list