From af1ed0c1077cdfc63ae3621a482167f644586297 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 19 Jan 2000 23:06:17 +0000 Subject: [PATCH] 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 --- src/html/htmlcell.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.45.2