From 86d7cf5d96dae174159af7a346fad4346cff9eef Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 2 Jun 2024 10:46:07 +0100 Subject: [PATCH] Formatting. --- pcbnew/dialogs/dialog_target_properties.cpp | 8 ++++---- pcbnew/generators/pcb_tuning_pattern.cpp | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pcbnew/dialogs/dialog_target_properties.cpp b/pcbnew/dialogs/dialog_target_properties.cpp index 576f1bf972..de8e9858d8 100644 --- a/pcbnew/dialogs/dialog_target_properties.cpp +++ b/pcbnew/dialogs/dialog_target_properties.cpp @@ -98,11 +98,11 @@ bool DIALOG_TARGET_PROPERTIES::TransferDataFromWindow() bool pushCommit = ( m_Target->GetEditFlags() == 0 ); if( m_Target->GetEditFlags() != 0 ) // other edit in progress (MOVE, NEW ..) - m_Target->SetFlags( IN_EDIT ); // set flag in edit to force - // undo/redo/abort proper operation + m_Target->SetFlags( IN_EDIT ); // set flag IN_EDIT to force + // undo/redo/abort proper operation - m_Target->SetWidth( m_Thickness.GetValue() ); - m_Target->SetSize( m_Size.GetValue() ); + m_Target->SetWidth( m_Thickness.GetIntValue() ); + m_Target->SetSize( m_Size.GetIntValue() ); m_Target->SetShape( m_TargetShape->GetSelection() ? 1 : 0 ); if( pushCommit ) diff --git a/pcbnew/generators/pcb_tuning_pattern.cpp b/pcbnew/generators/pcb_tuning_pattern.cpp index 47b745229e..abfe4cec0a 100644 --- a/pcbnew/generators/pcb_tuning_pattern.cpp +++ b/pcbnew/generators/pcb_tuning_pattern.cpp @@ -323,6 +323,7 @@ public: if( !this->HasFlag( IN_EDIT ) ) { PCB_GENERATOR::Flip( aCentre, aFlipLeftRight ); + if( aFlipLeftRight ) MIRROR( m_end.x, aCentre.x ); else