piaoyongren / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

bug in CPAxis #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I think there is a bug in the CPAxis class. In function -
(void)tickLocationsBeginningAt:(NSDecimal)beginNumber 
increasing:(BOOL)increasing 
majorTickLocations:(NSSet **)newMajorLocations minorTickLocations:(NSSet 
**)newMinorLocations 
there is while-circle with condition ( range &&
            (increasing && CPDecimalLessThanOrEqualTo(coord, range.end)) || 
            (!increasing && CPDecimalGreaterThanOrEqualTo(coord, range.location)) ). I think that this 
condition must be ( range &&
            ( (increasing && CPDecimalLessThanOrEqualTo(coord, range.end)) || 
            (!increasing && CPDecimalGreaterThanOrEqualTo(coord, range.location)) ) ) because if 
range is nil range.end and range.location aren't correct.

Original issue reported on code.google.com by sasko...@rambler.ru on 16 Mar 2010 at 9:23

GoogleCodeExporter commented 9 years ago
This should now be fixed.

Original comment by drewmcco...@mac.com on 17 Mar 2010 at 8:09