]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpwnd.cpp
Warning fix.
[wxWidgets.git] / src / html / helpwnd.cpp
index 51e081117de2f550e288e215625af9fe0708e9df..e9aac75806a72bfd8c99f19d1c1fa27eb72d7304 100644 (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;