]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlcell.cpp
added intelligent scaling of icons -- cutting empty borders so that the icon is not...
[wxWidgets.git] / 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);
 }