Coverity CID 100 fix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2006-03-27 12:36:11 +00:00
parent faa94f3ec8
commit a8b9c34463

View File

@ -1503,7 +1503,9 @@ void wxHtmlHelpWindow::OnToolbar(wxCommandEvent& event)
{
m_BookmarksNames.RemoveAt(pos);
m_BookmarksPages.RemoveAt(pos);
m_Bookmarks->Delete(m_Bookmarks->GetSelection());
pos = m_Bookmarks->GetSelection();
wxASSERT_MSG( pos != wxNOT_FOUND , wxT("Unknown bookmark position") ) ;
m_Bookmarks->Delete((unsigned int)pos);
}
}
break;