From fc5d9e38ee002c024be3019e37b63f1a1d88e7c2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 22 Dec 2008 21:42:13 +0000 Subject: [PATCH] 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 --- src/generic/grid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());