Don't assert if no icon is specified for a wxDataViewCtrl item.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 13 May 2012 21:37:16 +0000 (21:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 13 May 2012 21:37:16 +0000 (21:37 +0000)
commit530a50ecf00d2f5494cca07531f9a83b63878326
tree26b055c84a0003e244e1aac0e180839c2d2ba657
parented4caec714eff47f39ed6fb0e7177ad8488cfab5
Don't assert if no icon is specified for a wxDataViewCtrl item.

An item in a column using wxDataViewIconTextRenderer might not have any valid
icon associated with it, don't assert in case it doesn't in the native GTK
version.

Notice that the generic wxDataViewCtrl implementation already supports this
but not perfectly: no space is reserved for the icon in the images without
one, so giving the image to only some of them looks ugly. The GTK version
aligns both the items with and without icon properly and simply leaves the
image part blank and it would be better to modify the generic version to do
the same thing in the future.

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