Browse Source

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

pull/18/head
Jeff Young 3 months ago
parent
commit
880ff60416
  1. 8
      include/rc_item.h

8
include/rc_item.h

@ -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.
*/

Loading…
Cancel
Save