X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/73de5077ceb7c902e1c1179255f396c40d8a3aa2..acc476c530e1730d9202b404ec0b0b87ae44ced6:/src/html/htmlwin.cpp?ds=sidebyside diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index fc42f4cb5a..7d71dd82d7 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -274,8 +274,10 @@ bool wxHtmlWindow::DoSetPage(const wxString& source) wxHtmlProcessorList::compatibility_iterator nodeL, nodeG; int prL, prG; - nodeL = (m_Processors) ? m_Processors->GetFirst() : wxHtmlProcessorList::compatibility_iterator(); - nodeG = (m_GlobalProcessors) ? m_GlobalProcessors->GetFirst() : wxHtmlProcessorList::compatibility_iterator(); + if ( m_Processors ) + nodeL = m_Processors->GetFirst(); + if ( m_GlobalProcessors ) + nodeG = m_GlobalProcessors->GetFirst(); // VS: there are two lists, global and local, both of them sorted by // priority. Since we have to go through _both_ lists with