fixed off by 2 error in HasPage() (patch 1562871)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-10-04 22:58:23 +00:00
parent 595191bba9
commit a863333e37

View 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();
}