Cvpcb: avoid crash on start if _pcbnew.kiface (needed by cvpcb) is not found.

This commit is contained in:
jean-pierre charras 2018-04-12 11:07:43 +02:00
parent 0d8692da20
commit c421840a9e
1 changed files with 1 additions and 1 deletions

View File

@ -228,6 +228,6 @@ FOOTPRINT_FILTER_IT FOOTPRINT_FILTER::begin()
FOOTPRINT_FILTER_IT FOOTPRINT_FILTER::end()
{
FOOTPRINT_FILTER_IT end_it( *this );
end_it.m_pos = m_list->GetCount();
end_it.m_pos = m_list ? m_list->GetCount() : 0;
return end_it;
}