]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/datavgen.cpp
Forward port new wxRenderer methods in 2.8 to trunk.
[wxWidgets.git] / src / generic / datavgen.cpp
index b15e2eb4d480d7d38111bbc7a31f9f9699e46523..21483c4910e6df6750e5285703171c154b4da885 100644 (file)
@@ -91,7 +91,7 @@ public:
 protected:
     // implement/override wxHeaderCtrl functions by forwarding them to the main
     // control
-    virtual wxHeaderColumnBase& GetColumn(unsigned int idx)
+    virtual wxHeaderColumn& GetColumn(unsigned int idx)
     {
         return *(GetOwner()->GetColumn(idx));
     }
@@ -176,8 +176,10 @@ private:
 
     void OnEndResize(wxHeaderCtrlEvent& event)
     {
+        wxDataViewCtrl * const owner = GetOwner();
+
         const unsigned col = event.GetColumn();
-        GetColumn(col).SetWidth(event.GetWidth());
+        owner->GetColumn(col)->SetWidth(event.GetWidth());
         GetOwner()->OnColumnChange(col);
     }