KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_issue24606_derived_symbol_fields.cpp File Reference

Regression test for https://gitlab.com/kicad/code/kicad/-/issues/24606. More...

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (UnmodifiedInheritedFieldDetection)
 The symbol properties dialog decides whether a grid row is an unchanged inherited field by comparing the row (a copy of the parent field reparented to the edited symbol with a reassigned ordinal) against the parent field.
 

Detailed Description

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( UnmodifiedInheritedFieldDetection )

The symbol properties dialog decides whether a grid row is an unchanged inherited field by comparing the row (a copy of the parent field reparented to the edited symbol with a reassigned ordinal) against the parent field.

operator== is owner-sensitive, so it never matched and every inherited field was written into the derived symbol.

Definition at line 40 of file test_issue24606_derived_symbol_fields.cpp.

References LIB_SYMBOL::AddField(), BOOST_AUTO_TEST_CASE(), SCH_FIELD::GetPosition(), SCH_FIELD::HasSameContent(), SCH_FIELD::IsNameShown(), EDA_TEXT::IsVisible(), SCH_FIELD::SetName(), SCH_FIELD::SetNameShown(), SCH_FIELD::SetOrdinal(), EDA_ITEM::SetParent(), LIB_SYMBOL::SetParent(), SCH_FIELD::SetPosition(), SCH_FIELD::SetText(), EDA_TEXT::SetVisible(), and USER.