mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Handle ref & value proxies as if they were refs and values.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20613
This commit is contained in:
parent
66a7abca09
commit
57d0fa6f2d
@ -555,18 +555,20 @@ bool DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::TransferDataFromWindow()
|
||||
if( m_values->GetValue() )
|
||||
visitItem( commit, &fp->Value() );
|
||||
|
||||
if( m_otherFootprintFields->GetValue() )
|
||||
for( PCB_FIELD* field : fp->GetFields() )
|
||||
{
|
||||
for( PCB_FIELD* field : fp->GetFields() )
|
||||
{
|
||||
if( field->IsReference() )
|
||||
continue;
|
||||
if( field->IsReference() )
|
||||
continue;
|
||||
|
||||
if( field->IsValue() )
|
||||
continue;
|
||||
if( field->IsValue() )
|
||||
continue;
|
||||
|
||||
if( m_otherFootprintFields->GetValue() )
|
||||
visitItem( commit, field );
|
||||
else if( m_references->GetValue() && field->GetText() == wxT( "${REFERENCE}" ) )
|
||||
visitItem( commit, field );
|
||||
else if( m_values->GetValue() && field->GetText() == wxT( "${VALUE}" ) )
|
||||
visitItem( commit, field );
|
||||
}
|
||||
}
|
||||
|
||||
// Go through all other footprint items
|
||||
@ -576,8 +578,14 @@ bool DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::TransferDataFromWindow()
|
||||
|
||||
if( itemType == PCB_TEXT_T || itemType == PCB_TEXTBOX_T )
|
||||
{
|
||||
EDA_TEXT* textItem = dynamic_cast<EDA_TEXT*>( boardItem );
|
||||
|
||||
if( m_footprintTexts->GetValue() )
|
||||
visitItem( commit, boardItem );
|
||||
else if( m_references->GetValue() && textItem->GetText() == wxT( "${REFERENCE}" ) )
|
||||
visitItem( commit, boardItem );
|
||||
else if( m_values->GetValue() && textItem->GetText() == wxT( "${VALUE}" ) )
|
||||
visitItem( commit, boardItem );
|
||||
}
|
||||
else if( BaseType( itemType ) == PCB_DIMENSION_T )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user