7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 14:31:42 +00:00

Whoops, mutable.

This commit is contained in:
Sven Pauli 2024-12-29 22:20:20 +01:00 committed by Jeff Young
parent 5815998b5b
commit d070f5ee95

View File

@ -2982,7 +2982,7 @@ const SHAPE_POLY_SET& FOOTPRINT::GetCourtyard( PCB_LAYER_ID aLayer ) const
if( m_courtyard_cache_front_hash != m_courtyard_cache_front.GetHash()
|| m_courtyard_cache_back_hash != m_courtyard_cache_back.GetHash() )
{
BuildCourtyardCaches();
const_cast<FOOTPRINT*>(this)->BuildCourtyardCaches();
}
return GetCachedCourtyard( aLayer );