]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/grid.h
Added Python methods to wxStyledTextCtrl that allow to get/set text in
[wxWidgets.git] / include / wx / generic / grid.h
index 612eefeaaa705890e4665a0fd36f7a7ad50900b2..e9b5dbb0c2b2703babfa60fc0363152d6e4c7c9a 100644 (file)
@@ -713,6 +713,14 @@ public:
 
     void SetDefAttr(wxGridCellAttr* defAttr) { m_defGridAttr = defAttr; }
 
+protected:
+    // the dtor is private because only DecRef() can delete us
+    virtual ~wxGridCellAttr()
+    {
+        wxSafeDecRef(m_renderer);
+        wxSafeDecRef(m_editor);
+    }
+
 private:
     enum wxAttrReadMode
     {
@@ -731,12 +739,6 @@ private:
     // the common part of all ctors
     void Init(wxGridCellAttr *attrDefault = NULL);
 
-    // the dtor is private because only DecRef() can delete us
-    ~wxGridCellAttr()
-    {
-        wxSafeDecRef(m_renderer);
-        wxSafeDecRef(m_editor);
-    }
 
     // the ref count - when it goes to 0, we die
     size_t   m_nRef;