From: SourceForge.net <no...@so...> - 2011-09-05 12:27:17
|
Patches item #3404261, was opened at 2011-09-05 14:23 Message generated for change (Comment added) made by cromozon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821570&aid=3404261&group_id=161868 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: C. Gleerup (cromozon) Assigned to: Nobody/Anonymous (nobody) Summary: Prevent overflow exception from single point Inf/NaN data Initial Comment: small modification that checks input data and does nothing in case of NaN/Inf when drawing single point. this prevents a possible stackOverflow exception from system drawing. ---------------------------------------------------------------------- >Comment By: C. Gleerup (cromozon) Date: 2011-09-05 14:27 Message: whopsi, i might add, the relevant file is: \src\LinePlot.cs line 109, just below PointF physical = t.Transform( data[0] ); add if (float.IsNaN(physical.X) || float.IsInfinity(physical.X) || float.IsNaN(physical.Y) || float.IsInfinity(physical.Y)) { return; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821570&aid=3404261&group_id=161868 |