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;
str = m_WParser -> GetFS() -> OpenFile(tmp);
if (tag.HasParam("WIDTH")) tag.ScanParam("WIDTH", "%i", &w);
- if (tag.HasParam("HEIGHT(")) tag.ScanParam("HEIGHT(", "%i", &h);
+ if (tag.HasParam("HEIGHT")) tag.ScanParam("HEIGHT", "%i", &h);
al = HTML_ALIGN_BOTTOM;
if (tag.HasParam("ALIGN")) {
wxString alstr = tag.GetParam("ALIGN");
{
cel = new wxHtmlImageMapAreaCell( wxHtmlImageMapAreaCell::CIRCLE, coords );
}
- else if (tmp == "RECT(")
+ else if (tmp == "RECT")
{
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 );
}
}