Browse Source

Fix crash in cvpcb when filtering by component with no components

Fixes: lp:1656685
* https://bugs.launchpad.net/kicad/+bug/1656685
pull/3/merge
Chris Pavlina 9 years ago
parent
commit
ef11d110b2
  1. 4
      cvpcb/class_footprints_listbox.cpp

4
cvpcb/class_footprints_listbox.cpp

@ -137,10 +137,10 @@ void FOOTPRINTS_LISTBOX::SetFootprints( FOOTPRINT_LIST& aList, const wxString& a
FOOTPRINT_FILTER filter( aList );
if( aFilterType & FILTERING_BY_COMPONENT_KEYWORD )
if( aFilterType & FILTERING_BY_COMPONENT_KEYWORD && aComponent )
filter.FilterByFootprintFilters( aComponent->GetFootprintFilters() );
if( aFilterType & FILTERING_BY_PIN_COUNT )
if( aFilterType & FILTERING_BY_PIN_COUNT && aComponent )
filter.FilterByPinCount( aComponent->GetNetCount() );
if( aFilterType & FILTERING_BY_LIBRARY )

Loading…
Cancel
Save