Crash on deleting ChartDataItem (x=NaN) lazarus / 55-TAChart ---------------------------------------------------------------------- wp · 2011-11-06 14:47 When attempting to delete a ChartDataItem from a TListChartSource containing a NaN results in a crash in TListChartSource.Delete. See the attached project to verify the bug. The chart source of the line series is constructed to have a NaN for the x value of data item #0. Clicking on the "Delete Point #0" tries do delete this point from the series. This causes a crash because TListChartSource.Delete compares the Extent with NaN. [Edit] There are also NaN related issues in TListChartSourceStrings.Get (not demonstrated in the attached project). ---------------------------------------------------------------------- Ask · 2011-11-06 19:40 I am travelling now, so I will not be able to fix this until the next week. The fix for this particular issue is simple, but the general tendency somewhat worries me -- too many IsNan checks might hurt performance... or maybe this effect will be insignificant and is nothing to worry about.