#1121 Calling setRange(0,0) on a NumberAxis freezes the rendering

1.0.x
closed-fixed
David Gilbert
freeze (1)
5
2014-03-10
2014-01-09
Yogu
No

NumberAxis.setRange() should check whether the argument difference is zero (or nearly zero). Otherwise, the rendering will generate a NaN, which will then be propagated to Swing. At least in my version of jdk, this causes an infinite loop.

Adding tests to setRange() should be pretty easy and prevents the next victim of half an our debugging.

Discussion

  • David Gilbert
    David Gilbert
    2014-03-10

    This is done for the upcoming 1.0.18 release. Thanks for raising it.

     
  • David Gilbert
    David Gilbert
    2014-03-10

    • status: open --> closed-fixed
    • assigned_to: David Gilbert