]> git.saurik.com Git - wxWidgets.git/commitdiff
added default ctor and SetSelection to wxHtmlRenderingState
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 1 Jun 2003 13:28:09 +0000 (13:28 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 1 Jun 2003 13:28:09 +0000 (13:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/html/htmlcell.h

index 6a7a62f2892458d1efaa1493c03d69c434001420..4b2e9f72c30e12570110efcc50a0ad3d38cb33e8 100644 (file)
@@ -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; }