]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_links.cpp
fixes to wxHTML selection code: corrected mouse navigation
[wxWidgets.git] / src / html / m_links.cpp
index dd0c0eae077fecd9041b51fb14ed4b9251ab41a4..b1f0d0876f95bb537125bf29e1abde34c79c0728 100644 (file)
@@ -32,18 +32,29 @@ FORCE_LINK_ME(m_links)
 
 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
+private:
+    wxString m_AnchorName;
+
+public:
+    wxHtmlAnchorCell(const wxString& name) : wxHtmlCell()
+        { m_AnchorName = name; }
+    void Draw(wxDC& WXUNUSED(dc),
+              int WXUNUSED(x), int WXUNUSED(y),
+              int WXUNUSED(view_y1), int WXUNUSED(view_y2),
+              wxHtmlRenderingState& WXUNUSED(state)) {}
+
+    virtual const wxHtmlCell* Find(int condition, const void* param) const
+    {
+        if ((condition == wxHTML_COND_ISANCHOR) && 
+            (m_AnchorName == (*((const wxString*)param))))
         {
-            if ((condition == wxHTML_COND_ISANCHOR) && (m_AnchorName == (*((const wxString*)param))))
-                return this;
-            else
-                return wxHtmlCell::Find(condition, param);
+            return this;
         }
+        else
+        {
+            return wxHtmlCell::Find(condition, param);
+        }
+    }
 };