mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Attempt to circumvent GetValue() getting called when there's no wxDataViewItem.
This commit is contained in:
parent
60869cc950
commit
880ff60416
@ -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…
x
Reference in New Issue
Block a user