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:
parent
595191bba9
commit
a863333e37
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user