Don't crash in generic wxDataViewCtrl if it doesn't have any model.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 22:21:20 +0000 (22:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 22:21:20 +0000 (22:21 +0000)
commitbe4162218d1d4cc7ea11ff4c0f7286c47086e3de
tree5f746df695303a3c787a34bed60d8464daf1c5db
parentf5413b878c19eafae19edb48455d0d79b37b0ffc
Don't crash in generic wxDataViewCtrl if it doesn't have any model.

A model may be dissociated from a still existing control, don't crash if it
happens (notice that we still would crash in the native GTK version right now,
so this still remains to be fixed there).

See #14616.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/datavgen.cpp