Eeschema: fix broken symbol library links after sheet edit.

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

This fix was better than the previous fix as it was the same diff between
the master and 5.1 branches.

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

Fixes lp:1830315

(cherry picked from commit 89ada624d3d3b28ad5ee1477b353501d46dae3a2)
This commit is contained in:
Wayne Stambaugh 2019-05-28 17:07:00 -04:00
parent 2d0e92d412
commit 1638c3b1c2
1 changed files with 5 additions and 0 deletions

View File

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