Browse Source

Cleanup.

6.0.7
Jeff Young 5 years ago
parent
commit
34be4b4666
  1. 10
      eeschema/sch_view.cpp
  2. 1
      eeschema/sch_view.h

10
eeschema/sch_view.cpp

@ -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.

1
eeschema/sch_view.h

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

Loading…
Cancel
Save