]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed bug in imagemap
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 8 Oct 1999 15:22:39 +0000 (15:22 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 8 Oct 1999 15:22:39 +0000 (15:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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 );
                }
        }