X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c1bfc5da0e4a79803c87747371bcccb377899e0..1d910ac1fcebc69cda4c0b85278af09a55c9a611:/src/html/htmlcell.cpp 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); }