]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed SetLink (if link.Href is empty, nulls the link
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 19 Jan 2000 23:06:17 +0000 (23:06 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 19 Jan 2000 23:06:17 +0000 (23:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlcell.cpp

index 845a709c1fe431ba16795a0b9c1e774738690c10..e6c3269665b3dd59f940b6ad80da958439a45d76 100644 (file)
@@ -85,7 +85,9 @@ bool wxHtmlCell::AdjustPagebreak(int *pagebreak) const
 void wxHtmlCell::SetLink(const wxHtmlLinkInfo& link) 
 {
     if (m_Link) delete m_Link;
-    m_Link = new wxHtmlLinkInfo(link);
+    m_Link = NULL;
+    if (link.GetHref() != wxEmptyString)
+        m_Link = new wxHtmlLinkInfo(link);
 }