]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmprint.cpp
moved assertdlg_gtk.[ch] to GTK_LOWLEVEL_SRC/HDR to fix wxUniv/GTK build
[wxWidgets.git] / src / html / htmprint.cpp
index 80fa77356431fa679e6ac7b32d953c5303a6cdb9..5b33c6e860ddce21bdbf6a759cc871c39d3b6418 100644 (file)
@@ -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();
 }