From kde-commits Thu Oct 25 18:16:13 2012 From: =?utf-8?q?Peter=20K=C3=BCmmel?= Date: Thu, 25 Oct 2012 18:16:13 +0000 To: kde-commits Subject: branches/work/kst/portto4/kst/src/libkstapp Message-Id: <20121025181613.6ADFAAC857 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=135118899021781 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;