fixed bug in imagemap

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
1999-10-08 15:22:39 +00:00
parent 223d09f6b5
commit 44174280e5

View File

@@ -445,12 +445,12 @@ TAG_HANDLER_BEGIN(IMG, "IMG, MAP, AREA")
{ {
cel = new wxHtmlImageMapAreaCell( wxHtmlImageMapAreaCell::RECT, coords ); cel = new wxHtmlImageMapAreaCell( wxHtmlImageMapAreaCell::RECT, coords );
} }
if (cel && tag.HasParam("HREF")) if (cel != NULL && tag.HasParam("HREF"))
{ {
wxString tmp = tag.GetParam("HREF"); wxString tmp = tag.GetParam("HREF");
cel->SetLink( tmp ); cel->SetLink( tmp );
} }
m_WParser->GetContainer()->InsertCell( cel ); if (cel != NULL) m_WParser->GetContainer()->InsertCell( cel );
} }
} }