This commit is contained in:
Jeff Young 2020-12-08 15:27:43 +00:00
parent d1a9efa5fc
commit 34be4b4666
2 changed files with 2 additions and 9 deletions

View File

@ -121,12 +121,6 @@ void SCH_VIEW::DisplaySheet( SCH_SCREEN *aScreen )
}
void SCH_VIEW::DisplaySheet( SCH_SHEET* aSheet )
{
DisplaySheet( aSheet->GetScreen() );
}
void SCH_VIEW::DisplayComponent( LIB_PART* aPart )
{
Clear();
@ -138,7 +132,7 @@ void SCH_VIEW::DisplayComponent( LIB_PART* aPart )
LIB_PART* drawnPart = aPart;
// Draw the mandatory fields for aliases and parent symbols.
for( auto& item : aPart->GetDrawItems() )
for( LIB_ITEM& item : aPart->GetDrawItems() )
{
if( item.Type() != LIB_FIELD_T )
continue;
@ -163,7 +157,7 @@ void SCH_VIEW::DisplayComponent( LIB_PART* aPart )
drawnPart = parent.get();
}
for( auto& item : drawnPart->GetDrawItems() )
for( LIB_ITEM& item : drawnPart->GetDrawItems() )
{
// Don't show parent symbol fields. Users may be confused by shown fields that can not
// be edited.

View File

@ -79,7 +79,6 @@ public:
void Cleanup();
void DisplaySheet( SCH_SHEET* aSheet );
void DisplaySheet( SCH_SCREEN* aScreen );
void DisplayComponent( LIB_PART* aPart );