]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/datavgen.cpp
Try to better revert to the original string value in wxBitmapComboBox::RecreateControl()
[wxWidgets.git] / src / generic / datavgen.cpp
index 8362e7a8430ae93ab3d89570a5e86350c4c98082..68c7d4bd0914e1ca6862234815675849cc8fe1d5 100644 (file)
@@ -4634,7 +4634,8 @@ void wxDataViewCtrl::StartEditor( const wxDataViewItem & item, unsigned int colu
 
     wxRect itemRect = GetItemRect(item, col);
     wxDataViewRenderer* renderer = col->GetRenderer();
-    renderer->StartEditing(item, itemRect);
+    if (renderer->GetMode() == wxDATAVIEW_CELL_EDITABLE)
+        renderer->StartEditing(item, itemRect);
 }
 
 #endif // !wxUSE_GENERICDATAVIEWCTRL