Position intersheet refs in imported Eagle schematics.
Fixes https://gitlab.com/kicad/code/kicad/issues/13667
This commit is contained in:
parent
ec4d377d15
commit
e5749d0cda
|
@ -1003,6 +1003,12 @@ void SCH_EAGLE_PLUGIN::loadSheet( wxXmlNode* aSheetNode, int aSheetIndex )
|
||||||
for( SCH_ITEM* item : allItems )
|
for( SCH_ITEM* item : allItems )
|
||||||
{
|
{
|
||||||
item->SetPosition( item->GetPosition() + translation );
|
item->SetPosition( item->GetPosition() + translation );
|
||||||
|
|
||||||
|
// We don't read positions of Eagle label fields (primarily intersheet refs), so we
|
||||||
|
// need to autoplace them after applying the translation.
|
||||||
|
if( SCH_LABEL_BASE* label = dynamic_cast<SCH_LABEL_BASE*>( item ) )
|
||||||
|
label->AutoplaceFields( screen, false );
|
||||||
|
|
||||||
item->ClearFlags();
|
item->ClearFlags();
|
||||||
screen->Update( item );
|
screen->Update( item );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue