From ec4fd42beeca666f73ecf779d02afcde7d7d3ee2 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 30 Nov 2022 09:07:32 +0100 Subject: [PATCH] Pcbnew: force courtyard area shape rebuild afret rotation/flip. Fixes #13039 https://gitlab.com/kicad/code/kicad/issues/13039 --- pcbnew/footprint.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/footprint.cpp b/pcbnew/footprint.cpp index 3213031f76..3afcdeb44a 100644 --- a/pcbnew/footprint.cpp +++ b/pcbnew/footprint.cpp @@ -1558,6 +1558,7 @@ void FOOTPRINT::Rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle ) m_visibleBBoxCacheTimeStamp = 0; m_textExcludedBBoxCacheTimeStamp = 0; m_hullCacheTimeStamp = 0; + m_courtyard_cache_timestamp = 0; } @@ -1646,6 +1647,7 @@ void FOOTPRINT::Flip( const VECTOR2I& aCentre, bool aFlipLeftRight ) m_boundingBoxCacheTimeStamp = 0; m_visibleBBoxCacheTimeStamp = 0; m_textExcludedBBoxCacheTimeStamp = 0; + m_courtyard_cache_timestamp = 0; m_cachedHull.Mirror( aFlipLeftRight, !aFlipLeftRight, m_pos ); @@ -1833,6 +1835,7 @@ void FOOTPRINT::SetOrientation( const EDA_ANGLE& aNewAngle ) m_boundingBoxCacheTimeStamp = 0; m_visibleBBoxCacheTimeStamp = 0; m_textExcludedBBoxCacheTimeStamp = 0; + m_courtyard_cache_timestamp = 0; m_cachedHull.Rotate( angleChange, GetPosition() ); }