]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid an endless recursion situation
authorRobin Dunn <robin@alldunn.com>
Thu, 23 Sep 2010 21:10:34 +0000 (21:10 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 23 Sep 2010 21:10:34 +0000 (21:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/dataview.mm

index 87d16daae706abb4bf8661ae537deb2d6a64cf03..29d412a26b0356296af38b2bbecce69e0073fe41 100644 (file)
@@ -2976,7 +2976,12 @@ void wxDataViewColumn::SetResizeable(bool resizeable)
 
 void wxDataViewColumn::SetSortable(bool sortable)
 {
-    wxDataViewColumnBase::SetSortable(sortable);
+    // wxDataViewColumnBase::SetSortable(sortable);
+    // Avoid endless recursion and just set the flag here
+    if (sortable)
+        m_flags |= wxDATAVIEW_COL_SORTABLE;
+    else
+        m_flags &= ~wxDATAVIEW_COL_SORTABLE;
 }
 
 void wxDataViewColumn::SetSortOrder(bool ascending)