]> git.saurik.com Git - wxWidgets.git/commitdiff
Coverity CID 100 fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 27 Mar 2006 12:36:11 +0000 (12:36 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 27 Mar 2006 12:36:11 +0000 (12:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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;