use CanSetValueAs() instead of CanGetValueAs() in wxGridCellBoolEditor::EndEdit

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-12-22 21:42:13 +00:00
parent 03d7d36ba9
commit fc5d9e38ee

View File

@ -1966,7 +1966,7 @@ bool wxGridCellBoolEditor::EndEdit(int row, int col,
if ( changed )
{
wxGridTableBase * const table = grid->GetTable();
if ( table->CanGetValueAs(row, col, wxGRID_VALUE_BOOL) )
if ( table->CanSetValueAs(row, col, wxGRID_VALUE_BOOL) )
table->SetValueAsBool(row, col, value);
else
table->SetValue(row, col, GetValue());