From: Václav Slavík <vslavik@fastmail.fm>
Date: Sun, 1 Jun 2003 13:28:09 +0000 (+0000)
Subject: added default ctor and SetSelection to wxHtmlRenderingState
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6fac75c3557e56ec4aae1c2d39c017704d5d2eb3

added default ctor and SetSelection to wxHtmlRenderingState


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/include/wx/html/htmlcell.h b/include/wx/html/htmlcell.h
index 6a7a62f289..4b2e9f72c3 100644
--- a/include/wx/html/htmlcell.h
+++ b/include/wx/html/htmlcell.h
@@ -79,8 +79,9 @@ enum wxHtmlSelectionState
 class WXDLLEXPORT wxHtmlRenderingState
 {
 public:
-    wxHtmlRenderingState(wxHtmlSelection *s)
+    wxHtmlRenderingState(wxHtmlSelection *s = NULL)
         : m_selection(s), m_selState(wxHTML_SEL_OUT) {}
+    void SetSelection(wxHtmlSelection *s) { m_selection = s; }
     wxHtmlSelection *GetSelection() const { return m_selection; }
 
     void SetSelectionState(wxHtmlSelectionState s) { m_selState = s; }