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 9d1b200 commit 44aa923Copy full SHA for 44aa923
1 file changed
src/_tkagg.cpp
@@ -67,8 +67,7 @@ static PyObject *mpl_tk_blit(PyObject *self, PyObject *args)
67
PyErr_SetString(PyExc_ValueError, "Failed to extract Tk_PhotoHandle");
68
goto exit;
69
}
70
- if (0 > y1 || y1 > y2 || y2 > height ||
71
- 0 > x1 || x1 > x2 || x2 > width ) {
+ if (0 > y1 || y1 > y2 || y2 > height || 0 > x1 || x1 > x2 || x2 > width) {
72
PyErr_SetString(PyExc_ValueError, "Attempting to draw out of bounds");
73
74
0 commit comments