X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02761f6cd478e3c2c97cf6f93442747f7b029833..588f410058fc3d867c6e7ae3a19540fc1343c53f:/src/html/htmprint.cpp diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp index 80fa773564..5b33c6e860 100644 --- a/src/html/htmprint.cpp +++ b/src/html/htmprint.cpp @@ -276,7 +276,7 @@ void wxHtmlPrintout::GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, i bool wxHtmlPrintout::HasPage(int pageNum) { - return (pageNum >= 1 && pageNum-1 <= (signed)m_PageBreaks.Count()); + return pageNum > 0 && (unsigned)pageNum < m_PageBreaks.Count(); }