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:
@@ -1503,7 +1503,9 @@ void wxHtmlHelpWindow::OnToolbar(wxCommandEvent& event)
|
|||||||
{
|
{
|
||||||
m_BookmarksNames.RemoveAt(pos);
|
m_BookmarksNames.RemoveAt(pos);
|
||||||
m_BookmarksPages.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;
|
break;
|
||||||
|
Reference in New Issue
Block a user