Formatting.

This commit is contained in:
Jeff Young 2024-06-02 10:46:07 +01:00
parent c7ad5efbed
commit 86d7cf5d96
2 changed files with 5 additions and 4 deletions

View File

@ -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
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 )

View File

@ -323,6 +323,7 @@ public:
if( !this->HasFlag( IN_EDIT ) )
{
PCB_GENERATOR::Flip( aCentre, aFlipLeftRight );
if( aFlipLeftRight )
MIRROR( m_end.x, aCentre.x );
else