Fixed a crash in DIALOG_COPPER_ZONE
wxDataViewCtrl used an incorrect column type, which made wxWidgets try to extract wxDataViewIcon from an integer variable. Fixes: lp:1782449 * https://bugs.launchpad.net/kicad/+bug/1782449
This commit is contained in:
parent
829ba27206
commit
887ee46935
|
@ -165,7 +165,7 @@ void ZONE_SETTINGS::SetupLayersList( wxDataViewListCtrl* aList, PCB_BASE_FRAME*
|
|||
|
||||
wxDataViewColumn* checkColumn = aList->AppendToggleColumn( wxEmptyString );
|
||||
wxDataViewColumn* layerColumn = aList->AppendIconTextColumn( wxEmptyString );
|
||||
wxDataViewColumn* layerIDColumn = aList->AppendIconTextColumn( wxEmptyString );
|
||||
wxDataViewColumn* layerIDColumn = aList->AppendTextColumn( wxEmptyString );
|
||||
layerIDColumn->SetHidden( true );
|
||||
|
||||
int minWidth = 0;
|
||||
|
@ -186,7 +186,7 @@ void ZONE_SETTINGS::SetupLayersList( wxDataViewListCtrl* aList, PCB_BASE_FRAME*
|
|||
wxVector<wxVariant> row;
|
||||
row.push_back( wxVariant( m_Layers.test( layerID ) ) );
|
||||
row.push_back( wxVariant( wxDataViewIconText( layerName, icon ) ) );
|
||||
row.push_back( wxVariant( layerID ) );
|
||||
row.push_back( wxVariant( wxString::Format( "%i", layerID ) ) );
|
||||
aList->AppendItem( row );
|
||||
|
||||
if( m_CurrentZone_Layer == layerID )
|
||||
|
|
Loading…
Reference in New Issue