Eeschema: fix broken symbol library links after sheet edit.

Refresh the currently edit sheet screen symbol links when the sheet file
name is changed.

https://bugs.launchpad.net/kicad/+bug/1830315

Fixes lp:1830315
This commit is contained in:
Wayne Stambaugh 2019-05-28 17:07:00 -04:00
parent f59a2410fa
commit 133ff9b552
1 changed files with 5 additions and 0 deletions

View File

@ -253,6 +253,11 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, SCH_SHEET_PATH* aHierarchy,
return false; return false;
} }
SCH_SCREEN* screen = aSheet->GetScreen();
if( screen )
screen->UpdateSymbolLinks( true );
} }
aSheet->SetFileNameSize( dlg.GetFileNameTextSize() ); aSheet->SetFileNameSize( dlg.GetFileNameTextSize() );