Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4fb217b

Browse files
committed
Minor fix to conversion of should_simplify.
svn path=/trunk/matplotlib/; revision=6032
1 parent 1a2fcfe commit 4fb217b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/agg_py_path_iterator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class PathIterator
4040
throw Py::ValueError("Invalid codes array.");
4141
}
4242

43-
m_should_simplify = bool(Py::Int(should_simplify_obj));
43+
m_should_simplify = should_simplify_obj.isTrue();
4444
m_total_vertices = m_vertices->dimensions[0];
4545
}
4646

0 commit comments

Comments
 (0)