]> git.saurik.com Git - wxWidgets.git/commitdiff
use CanSetValueAs() instead of CanGetValueAs() in wxGridCellBoolEditor::EndEdit
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Dec 2008 21:42:13 +0000 (21:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Dec 2008 21:42:13 +0000 (21:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 1b1ed6c60440501cf60210d6814030b51479323e..af2d174e39d372344984e0d3fc2e0d84d71487d5 100644 (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());