X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3364ab799a731e813bfe380a30fdf6ecfc3c2738..b9b3ccd9ea9bf892369a6fa2c8e28e0ceca18527:/src/html/mod_links.cpp diff --git a/src/html/mod_links.cpp b/src/html/mod_links.cpp index dceb9024af..b3c6ec943f 100644 --- a/src/html/mod_links.cpp +++ b/src/html/mod_links.cpp @@ -25,7 +25,7 @@ #include #include -#include + FORCE_LINK_ME(mod_links) @@ -34,16 +34,16 @@ class wxHtmlAnchorCell : public wxHtmlCell { private: wxString m_AnchorName; - + public: wxHtmlAnchorCell(const wxString& name) : wxHtmlCell() {m_AnchorName = name;} virtual const wxHtmlCell* Find(int condition, const void* param) const { if ((condition == HTML_COND_ISANCHOR) && (m_AnchorName == (*((const wxString*)param)))) return this; - else + else return wxHtmlCell::Find(condition, param); - } + } }; @@ -55,7 +55,7 @@ TAG_HANDLER_BEGIN(A, "A") if (tag.HasParam("NAME")) { m_WParser -> GetContainer() -> InsertCell(new wxHtmlAnchorCell(tag.GetParam("NAME"))); } - + if (tag.HasParam("HREF")) { wxString oldlnk = m_WParser -> GetLink(); wxColour oldclr = m_WParser -> GetActualColor();