From: John H. <jdh...@ac...> - 2006-03-20 23:02:42
|
>>>>> "Darren" == Darren Dale <dd...@co...> writes: Darren> double lastx(-2.0), lasty(-2.0); @@ -1339,9 +1341,15 @@ Darren> } Darren> catch (...) { moveto = true; + skippoint = true; Darren> continue; Darren> } Darren> - + else + if (MPL_isnan64(thisx) || MPL_isnan64(thisy)) { Darren> + moveto = true; + skippoint = true; I don't think you need skippoint. A combination of setting "moveto" with "continue" should suffice. continue implicitly skips the point, and setting the moveto flag indicates to agg not to connect the previous with the next point. catch (...) { moveto = true; continue; } else if (MPL_isnan64(thisx) || MPL_isnan64(thisy)) { moveto = true; continue; } JDH |