fixed typo that caused incorrect if there was only one book

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-05-06 22:21:18 +00:00
parent e6b506bf47
commit 0c55409f3a

View File

@ -773,8 +773,10 @@ void wxHtmlHelpFrame::CreateContents()
if (booksCnt == 1)
{
roots[0] = roots[1] = m_ContentsBox->AddRoot(
it->m_Name, IMG_Page, -1,
it->m_Name, IMG_Book, -1,
new wxHtmlHelpTreeItemData(i));
imaged[0] = imaged[1] = TRUE;
m_ContentsBox->SetItemBold(roots[1], TRUE);
}
// multiple books:
else