]> git.saurik.com Git - wxWidgets.git/commit
Fix crash when editing wxDVC items in place in wxOSX/Cocoa.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Oct 2009 01:04:13 +0000 (01:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Oct 2009 01:04:13 +0000 (01:04 +0000)
commitf32eb96401af815f5662b715330802c2e6bfa452
tree5e2c5f75277fc3228eec59013097ae180d8a7e9d
parentc937bcac0fb8a8df7c0cbfc8c478a2874fec3eb9
Fix crash when editing wxDVC items in place in wxOSX/Cocoa.

NSOutlineView::editedColumn: and editedRow: return -1 when they are called
from textDidEndEditing so we need to store their values in textDidBeginEditing
and reuse them later.

This fixes the crash in the sample with out-of-range array index exception
which happened whenever a cell was edited.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/osx/cocoa/dataview.h
src/osx/cocoa/dataview.mm