From: Václav Slavík Date: Fri, 8 Oct 1999 15:22:39 +0000 (+0000) Subject: fixed bug in imagemap X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/44174280e5c9e203a4a98cecc82ff4d1c0dd9a81 fixed bug in imagemap git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp index 020c60230e..f6ca26be91 100644 --- a/src/html/m_image.cpp +++ b/src/html/m_image.cpp @@ -445,12 +445,12 @@ TAG_HANDLER_BEGIN(IMG, "IMG, MAP, AREA") { cel = new wxHtmlImageMapAreaCell( wxHtmlImageMapAreaCell::RECT, coords ); } - if (cel && tag.HasParam("HREF")) + if (cel != NULL && tag.HasParam("HREF")) { wxString tmp = tag.GetParam("HREF"); cel->SetLink( tmp ); } - m_WParser->GetContainer()->InsertCell( cel ); + if (cel != NULL) m_WParser->GetContainer()->InsertCell( cel ); } }