l = coords[ 0 ];
t = coords[ 1 ];
r = coords[ 2 ];
- d = sqrt( ((x - l) * (x - l)) + ((y - t) * (y - t)) );
+ d = sqrt( (double) (((x - l) * (x - l)) + ((y - t) * (y - t))) );
if (d < (double)r)
{
return m_Link;
{
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 );
}
}