]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/grid/griddemo.cpp
Compile fix for --disable-ffile.
[wxWidgets.git] / samples / grid / griddemo.cpp
index 2102af618f278ab702d92d67948764f9f000cbfa..fff0004fb0cbb94b4fc8142ff620caabf08f48d5 100644 (file)
@@ -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();
 }