X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6bae67261c727ee5030abda0a5996e3f9fa6b6b2..a0845d45830eb22769107a61a6cb3485fa21922b:/src/generic/notebook.cpp diff --git a/src/generic/notebook.cpp b/src/generic/notebook.cpp index ec05ba70b4..71072898ff 100644 --- a/src/generic/notebook.cpp +++ b/src/generic/notebook.cpp @@ -47,7 +47,7 @@ // ---------------------------------------------------------------------------- // check that the page index is valid -#define IS_VALID_PAGE(nPage) (((nPage) >= 0) && ((nPage) < GetPageCount())) +#define IS_VALID_PAGE(nPage) ((nPage) < GetPageCount()) // ---------------------------------------------------------------------------- // event table