diff --git a/samples/grid/griddemo.cpp b/samples/grid/griddemo.cpp index 2102af618f..fff0004fb0 100644 --- a/samples/grid/griddemo.cpp +++ b/samples/grid/griddemo.cpp @@ -968,10 +968,8 @@ void GridFrame::OnCellValueChanged( wxGridEvent& ev ) int row = ev.GetRow(), col = ev.GetCol(); - wxString value = grid->GetCellValue(row, col); - wxLogMessage(_T("Value changed for cell at row %d, col %d: now \"%s\""), - row, col, (const wxChar*) value); + row, col, grid->GetCellValue(row, col).c_str()); ev.Skip(); }