From 44174280e5c9e203a4a98cecc82ff4d1c0dd9a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 8 Oct 1999 15:22:39 +0000 Subject: [PATCH] fixed bug in imagemap git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/m_image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } }