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
This commit is contained in:
@@ -85,7 +85,9 @@ bool wxHtmlCell::AdjustPagebreak(int *pagebreak) const
|
|||||||
void wxHtmlCell::SetLink(const wxHtmlLinkInfo& link)
|
void wxHtmlCell::SetLink(const wxHtmlLinkInfo& link)
|
||||||
{
|
{
|
||||||
if (m_Link) delete m_Link;
|
if (m_Link) delete m_Link;
|
||||||
m_Link = new wxHtmlLinkInfo(link);
|
m_Link = NULL;
|
||||||
|
if (link.GetHref() != wxEmptyString)
|
||||||
|
m_Link = new wxHtmlLinkInfo(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user