[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kst/portto4/kst/src/libkstapp
From:       Peter Kümmel <syntheticpp () gmx ! net>
Date:       2012-10-25 18:16:13
Message-ID: 20121025181613.6ADFAAC857 () svn ! kde ! org
[Download RAW message or body]

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;
 
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic