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:
@@ -1966,7 +1966,7 @@ bool wxGridCellBoolEditor::EndEdit(int row, int col,
|
|||||||
if ( changed )
|
if ( changed )
|
||||||
{
|
{
|
||||||
wxGridTableBase * const table = grid->GetTable();
|
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);
|
table->SetValueAsBool(row, col, value);
|
||||||
else
|
else
|
||||||
table->SetValue(row, col, GetValue());
|
table->SetValue(row, col, GetValue());
|
||||||
|
Reference in New Issue
Block a user