diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 1b1ed6c604..af2d174e39 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -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());