FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

STY: reformat c++ conditional · matplotlib/matplotlib@44aa923 · GitHub

Repository navigation

Commit 44aa923

Browse files
committed
STY: reformat c++ conditional
1 parent 9d1b200 commit 44aa923

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/_tkagg.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ static PyObject *mpl_tk_blit(PyObject *self, PyObject *args)
6767
PyErr_SetString(PyExc_ValueError, "Failed to extract Tk_PhotoHandle");
6868
goto exit;
6969
}
70-
if (0 > y1 || y1 > y2 || y2 > height ||
71-
0 > x1 || x1 > x2 || x2 > width ) {
70+
if (0 > y1 || y1 > y2 || y2 > height || 0 > x1 || x1 > x2 || x2 > width) {
7271
PyErr_SetString(PyExc_ValueError, "Attempting to draw out of bounds");
7372
goto exit;
7473
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL