Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c76736 commit 5e94e9eCopy full SHA for 5e94e9e
1 file changed
src/agg_py_path_iterator.h
@@ -75,14 +75,18 @@ class PathIterator
75
{
76
if (m_iterator >= m_total_vertices) return agg::path_cmd_stop;
77
unsigned code = vertex_with_code(m_iterator++, x, y);
78
+
79
if (MPL_isnan64(*x) || MPL_isnan64(*y)) {
- do {
80
- vertex(m_iterator++, x, y);
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;
+ do {
+ if (m_iterator < m_total_vertices) {
+ vertex(m_iterator++, x, y);
+ } else {
+ return agg::path_cmd_stop;
85
+ }
86
+ } while (MPL_isnan64(*x) || MPL_isnan64(*y));
87
+ return agg::path_cmd_move_to;
88
}
89
90
return code;
91
92
0 commit comments