added wxLogError/Warning into wxHTML

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2000-01-23 21:47:41 +00:00
parent b662c13583
commit f3c8285953
5 changed files with 39 additions and 11 deletions

View File

@@ -173,7 +173,12 @@ void wxHtmlParser::PopTagHandler()
{
wxNode *first;
if (m_HandlersStack == NULL || (first = m_HandlersStack -> GetFirst()) == NULL) return;
if (m_HandlersStack == NULL ||
(first = m_HandlersStack -> GetFirst()) == NULL)
{
wxLogWarning(_("Warning: attempt to remove HTML tag handler from empty stack."));
return;
}
m_HandlersHash = *((wxHashTable*) first -> GetData());
m_HandlersStack -> DeleteNode(first);
}