]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_image.cpp
fixed compilation error
[wxWidgets.git] / src / html / m_image.cpp
index 020c60230ee946c780492671edd7a98ba1073537..f6ca26be919e7793364198d4a79b2816e6dde7db 100644 (file)
@@ -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 );
                }
        }