X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f322c6d8f4a09ceaa0b9d6835ded0ac3865968b..47eb93d02dde90c9153846b0c863711a09b7a718:/src/html/helpwnd.cpp?ds=sidebyside diff --git a/src/html/helpwnd.cpp b/src/html/helpwnd.cpp index 51e081117d..e9aac75806 100644 --- a/src/html/helpwnd.cpp +++ b/src/html/helpwnd.cpp @@ -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;