X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/574e1c5a033d169b75fa878759cdade7feddde8b..43c5b6e808f083617eb42cb48e77366844f8fb5c:/src/generic/grid.cpp diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 91dce5ee8a..73318daf36 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -3459,7 +3459,7 @@ void wxGrid::ChangeCursorMode(CursorMode mode, wxWindow *win, bool captureMouse) { -#ifdef __WXDEBUG__ +#if wxUSE_LOG_TRACE static const wxChar *cursorModes[] = { _T("SELECT_CELL"), @@ -3476,7 +3476,7 @@ void wxGrid::ChangeCursorMode(CursorMode mode, : win ? _T("rowLabelWin") : _T("gridWin"), cursorModes[m_cursorMode], cursorModes[mode]); -#endif +#endif // wxUSE_LOG_TRACE if ( mode == m_cursorMode && win == m_winCapture && @@ -5976,7 +5976,7 @@ void wxGrid::SaveEditControlValue() wxGridCellEditor* editor = attr->GetEditor(this, row, col); wxString newval; - bool changed = editor->EndEdit(oldval, &newval); + bool changed = editor->EndEdit(row, col, this, oldval, &newval); if ( changed && SendEvent(wxEVT_GRID_CELL_CHANGING, newval) != -1 ) {