Cvpcb: avoid crash on start if _pcbnew.kiface (needed by cvpcb) is not found.
This commit is contained in:
parent
0d8692da20
commit
c421840a9e
|
@ -228,6 +228,6 @@ FOOTPRINT_FILTER_IT FOOTPRINT_FILTER::begin()
|
||||||
FOOTPRINT_FILTER_IT FOOTPRINT_FILTER::end()
|
FOOTPRINT_FILTER_IT FOOTPRINT_FILTER::end()
|
||||||
{
|
{
|
||||||
FOOTPRINT_FILTER_IT end_it( *this );
|
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;
|
return end_it;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue