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