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:
parent
223d09f6b5
commit
44174280e5
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user