File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 2008-07-17 Fix bug with NaNs at end of path (thanks, Andrew Straw for
2+ the report) - MGD
3+
142008-07-12 Added support for external backends with the
25 "module://my_backend" syntax - JDH
36
Original file line number Diff line number Diff line change @@ -75,11 +75,13 @@ class PathIterator
7575 {
7676 if (m_iterator >= m_total_vertices) return agg::path_cmd_stop;
7777 unsigned code = vertex_with_code (m_iterator++, x, y);
78- while ((MPL_isnan64 (*x) || MPL_isnan64 (*y)) &&
79- m_iterator < m_total_vertices)
80- {
78+ if (MPL_isnan64 (*x) || MPL_isnan64 (*y)) {
79+ do {
8180 vertex (m_iterator++, x, y);
82- code = agg::path_cmd_move_to;
81+ } while ((MPL_isnan64 (*x) || MPL_isnan64 (*y)) &&
82+ m_iterator < m_total_vertices);
83+ return (m_iterator >= m_total_vertices) ? agg::path_cmd_stop :
84+ agg::path_cmd_move_to;
8385 }
8486 return code;
8587 }
You can’t perform that action at this time.
0 commit comments