From d19705ac8caf8cf31f1209caa5fe574b19ea48e8 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 20 Jun 2022 11:37:25 +0200 Subject: [PATCH] FOOTPRINT::Flip(): add missing handle of dimensions. --- pcbnew/footprint.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/pcbnew/footprint.cpp b/pcbnew/footprint.cpp index 4637e49e4f..a7717b8751 100644 --- a/pcbnew/footprint.cpp +++ b/pcbnew/footprint.cpp @@ -1621,8 +1621,25 @@ void FOOTPRINT::Flip( const VECTOR2I& aCentre, bool aFlipLeftRight ) static_cast( item )->Flip( m_pos, false ); break; + case PCB_FP_DIM_ALIGNED_T: + static_cast( item )->Flip( m_pos, false ); + break; + + case PCB_FP_DIM_ORTHOGONAL_T: + static_cast( item )->Flip( m_pos, false ); + break; + + case PCB_FP_DIM_RADIAL_T: + static_cast( item )->Flip( m_pos, false ); + break; + + case PCB_FP_DIM_LEADER_T: + static_cast( item )->Flip( m_pos, false ); + break; + default: - wxMessageBox( wxT( "FOOTPRINT::Flip() error: Unknown Draw Type" ) ); + wxMessageBox( wxString::Format( wxT( "FOOTPRINT::Flip() error: Unknown Draw Type %d" ), + (int)item->Type() ) ); break; } }