added wxID_HELP_INDEX/SEARCH (part of request 1404089)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-07-25 00:06:43 +00:00
parent 0edfdd963b
commit f1b18eba7f

View File

@@ -50,7 +50,7 @@ void wxRichTextPrintout::OnPreparePrinting()
{
wxBusyCursor wait;
m_numPages = 0;
m_numPages = 1;
m_pageBreaksStart.Clear();
m_pageBreaksEnd.Clear();
@@ -127,11 +127,10 @@ void wxRichTextPrintout::OnPreparePrinting()
}
// Closing page break
if (m_pageBreaksStart.GetCount() > 0 && (m_pageBreaksEnd[m_pageBreaksEnd.GetCount()-1] < (GetRichTextBuffer()->GetRange().GetEnd()-1)))
if (m_pageBreaksStart.GetCount() == 0 || (m_pageBreaksEnd[m_pageBreaksEnd.GetCount()-1] < (GetRichTextBuffer()->GetRange().GetEnd()-1)))
{
m_pageBreaksStart.Add(lastStartPos);
m_pageBreaksEnd.Add(GetRichTextBuffer()->GetRange().GetEnd());
m_numPages ++;
}
}
}