Gerbview: unexceptional exception cleanups
This commit is contained in:
parent
23a4b1001f
commit
ece9a782ac
|
@ -175,12 +175,8 @@ private:
|
||||||
int orig_layer = m_groups[i].first;
|
int orig_layer = m_groups[i].first;
|
||||||
int new_layer = orig_layer;
|
int new_layer = orig_layer;
|
||||||
|
|
||||||
try
|
if( aReorderMap.count( orig_layer ) )
|
||||||
{
|
|
||||||
new_layer = aReorderMap.at( orig_layer );
|
new_layer = aReorderMap.at( orig_layer );
|
||||||
}
|
|
||||||
catch( const std::out_of_range& )
|
|
||||||
{}
|
|
||||||
|
|
||||||
m_groups[i].first = new_layer;
|
m_groups[i].first = new_layer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue