From: Václav Slavík Date: Wed, 19 Jan 2000 23:06:17 +0000 (+0000) Subject: fixed SetLink (if link.Href is empty, nulls the link X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/af1ed0c1077cdfc63ae3621a482167f644586297?hp=ecf23aa6269c155f66f5a37d00bb8b11ad01f383 fixed SetLink (if link.Href is empty, nulls the link git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/htmlcell.cpp b/src/html/htmlcell.cpp index 845a709c1f..e6c3269665 100644 --- a/src/html/htmlcell.cpp +++ b/src/html/htmlcell.cpp @@ -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); }