From 60ec28290bcdbd88f7b67a9e82ce2303891cf3af Mon Sep 17 00:00:00 2001 From: Steve Lamerton Date: Fri, 1 Jul 2011 07:54:49 +0000 Subject: [PATCH] Add an extra assert in the case of trying to load an invalid history item git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/webview_ie.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msw/webview_ie.cpp b/src/msw/webview_ie.cpp index d87ec525b6..711932390e 100644 --- a/src/msw/webview_ie.cpp +++ b/src/msw/webview_ie.cpp @@ -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; -- 2.45.2