Attempt to circumvent GetValue() getting called when there's no wxDataViewItem.

This commit is contained in:
Jeff Young 2025-07-02 21:57:15 -06:00
parent 60869cc950
commit 880ff60416

View File

@ -267,6 +267,14 @@ public:
wxString GetColumnType( unsigned int aCol ) const override { return "string"; }
bool HasContainerColumns( wxDataViewItem const& aItem ) const override { return true; }
bool HasValue( const wxDataViewItem& item, unsigned col ) const override
{
if( m_tree.empty() )
return false;
else
return wxDataViewModel::HasValue( item, col );
}
/**
* Called by the wxDataView to fetch an item's value.
*/