Don't let anything, such as pressing F2, start editing an entry if the renderer is set to wxDATAVIEW_CELL_INERT

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2010-12-21 19:38:52 +00:00
parent d93cc83080
commit b9293331c6

View File

@ -4634,6 +4634,7 @@ void wxDataViewCtrl::StartEditor( const wxDataViewItem & item, unsigned int colu
wxRect itemRect = GetItemRect(item, col);
wxDataViewRenderer* renderer = col->GetRenderer();
if (renderer->GetMode() == wxDATAVIEW_CELL_EDITABLE)
renderer->StartEditing(item, itemRect);
}