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:
parent
03d7d36ba9
commit
fc5d9e38ee
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user