]> git.saurik.com Git - wxWidgets.git/commitdiff
Add an extra assert in the case of trying to load an invalid history item
authorSteve Lamerton <steve.lamerton@gmail.com>
Fri, 1 Jul 2011 07:54:49 +0000 (07:54 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Fri, 1 Jul 2011 07:54:49 +0000 (07:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/webview_ie.cpp

index d87ec525b6f3df35b5dd00c96837e195ceb3084b..711932390ed30987af56df2a62338a0dadaf1731 100644 (file)
@@ -381,6 +381,7 @@ void wxWebViewIE::LoadHistoryItem(wxWebHistoryItem* item)
         if(m_historyList[i].get() == item)
             pos = i;
     }
+    wxASSERT_MSG(pos != m_historyList.size(), "invalid history item");
     m_historyLoadingFromList = true;
     LoadUrl(item->GetUrl());
     m_historyPosition = pos;