Modified flags are handled by SCH_COMMIT.

This commit is contained in:
Jeff Young 2023-06-25 15:58:18 +01:00
parent 9854acd9e6
commit e7ee6e1f26
6 changed files with 6 additions and 32 deletions

View File

@ -512,11 +512,7 @@ void LIB_FIELD::SetName( const wxString& aName )
return;
}
if( m_name != aName )
{
m_name = aName;
SetModified();
}
m_name = aName;
}

View File

@ -939,7 +939,6 @@ void LIB_SYMBOL::RemoveDrawItem( LIB_ITEM* aItem )
if( &*i == aItem )
{
items.erase( i );
SetModified();
break;
}
}

View File

@ -149,32 +149,20 @@ EDA_ITEM* SCH_LINE::Clone() const
void SCH_LINE::Move( const VECTOR2I& aOffset )
{
if( aOffset != VECTOR2I( 0, 0 ) )
{
m_start += aOffset;
m_end += aOffset;
SetModified();
}
m_start += aOffset;
m_end += aOffset;
}
void SCH_LINE::MoveStart( const VECTOR2I& aOffset )
{
if( aOffset != VECTOR2I( 0, 0 ) )
{
m_start += aOffset;
SetModified();
}
m_start += aOffset;
}
void SCH_LINE::MoveEnd( const VECTOR2I& aOffset )
{
if( aOffset != VECTOR2I( 0, 0 ) )
{
m_end += aOffset;
SetModified();
}
m_end += aOffset;
}

View File

@ -275,11 +275,7 @@ bool SCH_SYMBOL::IsMovableFromAnchorPoint() const
void SCH_SYMBOL::SetLibId( const LIB_ID& aLibId )
{
if( m_lib_id != aLibId )
{
m_lib_id = aLibId;
SetModified();
}
m_lib_id = aLibId;
}

View File

@ -640,8 +640,6 @@ public:
for( SCH_FIELD& field : m_fields )
field.Move( aMoveVector );
SetModified();
}
void MirrorHorizontally( int aCenter ) override;

View File

@ -128,8 +128,6 @@ bool SYMBOL_EDITOR_PIN_TOOL::EditPinProperties( LIB_PIN* aPin )
if( dlg.ShowModal() == wxID_CANCEL )
return false;
aPin->SetModified();
if( !aPin->IsNew() && m_frame->SynchronizePins() && aPin->GetParent() )
{
LIB_PINS pinList;
@ -184,7 +182,6 @@ bool SYMBOL_EDITOR_PIN_TOOL::EditPinProperties( LIB_PIN* aPin )
other->SetNameTextSize( aPin->GetNameTextSize() );
other->SetNumberTextSize( aPin->GetNumberTextSize() );
other->SetModified();
got_unit[static_cast<size_t>( other->GetUnit() )] = true;
}
}