mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Invalid iterator safety.
This commit is contained in:
parent
0ddb34e8b0
commit
aa77f74c76
@ -752,7 +752,9 @@ bool SGSHAPE::Prepare( const glm::dmat4* aTransform, S3D::MATLIST& materials,
|
|||||||
for( unsigned int i = 0; i < nvidx; ++i )
|
for( unsigned int i = 0; i < nvidx; ++i )
|
||||||
{
|
{
|
||||||
mit = indexmap.find( lv[i] );
|
mit = indexmap.find( lv[i] );
|
||||||
lvidx[i] = mit->second;
|
|
||||||
|
if( mit != indexmap.end() )
|
||||||
|
lvidx[i] = mit->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
m.m_FaceIdxSize = (unsigned int )nvidx;
|
m.m_FaceIdxSize = (unsigned int )nvidx;
|
||||||
|
@ -797,8 +797,11 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter )
|
|||||||
{
|
{
|
||||||
auto mut_it = layer_lock.find( layer );
|
auto mut_it = layer_lock.find( layer );
|
||||||
|
|
||||||
std::lock_guard< std::mutex > lock( *( mut_it->second ) );
|
if( mut_it != layer_lock.end() )
|
||||||
zone->TransformSolidAreasShapesToPolygon( layer, *m_layers_poly[layer] );
|
{
|
||||||
|
std::lock_guard< std::mutex > lock( *( mut_it->second ) );
|
||||||
|
zone->TransformSolidAreasShapesToPolygon( layer, *m_layers_poly[layer] );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user