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

Skip to content

Commit 3653946

Browse files
committed
Fix bug introduced in 6033, reported by Jae-Joon Lee
svn path=/trunk/matplotlib/; revision=6042
1 parent fc648d8 commit 3653946

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
@@ -39,7 +39,7 @@ class PathIterator
3939
(codes_obj.ptr(), PyArray_UINT8, 1, 1);
4040
if (!m_codes)
4141
throw Py::ValueError("Invalid codes array.");
42-
if (PyArray_DIM(m_codes, 0) != PyArray_DIM(m_vertices, 1))
42+
if (PyArray_DIM(m_codes, 0) != PyArray_DIM(m_vertices, 0))
4343
throw Py::ValueError("Codes array is wrong length");
4444
}
4545

0 commit comments

Comments
 (0)