|
|
@ -562,15 +562,16 @@ void SCH_SCREEN::Draw( EDA_DRAW_PANEL* aCanvas, wxDC* aDC, GR_DRAWMODE aDrawMode |
|
|
|
* their SCH_SCREEN::Draw() draws nothing |
|
|
|
*/ |
|
|
|
|
|
|
|
// Ensure links are up to date, even if a library was reloaded for some reason:
|
|
|
|
CheckComponentsToPartsLinks(); |
|
|
|
|
|
|
|
for( SCH_ITEM* item = m_drawList.begin(); item; item = item->Next() ) |
|
|
|
{ |
|
|
|
if( item->IsMoving() || item->IsResized() ) |
|
|
|
continue; |
|
|
|
|
|
|
|
// uncomment line below when there is a virtual
|
|
|
|
// EDA_ITEM::GetBoundingBox()
|
|
|
|
// if( panel->GetClipBox().Intersects( Structs->GetBoundingBox()
|
|
|
|
// ) )
|
|
|
|
// uncomment line below when there is a virtual EDA_ITEM::GetBoundingBox()
|
|
|
|
// if( panel->GetClipBox().Intersects( item->GetBoundingBox() ) )
|
|
|
|
item->Draw( aCanvas, aDC, wxPoint( 0, 0 ), aDrawMode, aColor ); |
|
|
|
} |
|
|
|
} |
|
|
@ -582,6 +583,9 @@ void SCH_SCREEN::Draw( EDA_DRAW_PANEL* aCanvas, wxDC* aDC, GR_DRAWMODE aDrawMode |
|
|
|
*/ |
|
|
|
void SCH_SCREEN::Plot( PLOTTER* aPlotter ) |
|
|
|
{ |
|
|
|
// Ensure links are up to date, even if a library was reloaded for some reason:
|
|
|
|
CheckComponentsToPartsLinks(); |
|
|
|
|
|
|
|
for( SCH_ITEM* item = m_drawList.begin(); item; item = item->Next() ) |
|
|
|
{ |
|
|
|
aPlotter->SetCurrentLineWidth( item->GetPenSize() ); |
|
|
|