Loading pcbnew/class_pcb_layer_widget.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -413,6 +413,7 @@ void PCB_LAYER_WIDGET::OnLayerVisible( int aLayer, bool isVisible, bool isFinal { KIGFX::VIEW* view = galCanvas->GetView(); view->SetLayerVisible( aLayer, isVisible ); view->RecacheAllItems( true ); } if( isFinal ) Loading pcbnew/class_track.cpp +8 −9 Original line number Diff line number Diff line Loading @@ -393,17 +393,12 @@ LSET VIA::GetLayerSet() const // VIA_BLIND_BURIED or VIA_MICRVIA: LAYER_ID bottom_layer, top_layer; // LayerPair() knows how layers are stored LayerPair( &top_layer, &bottom_layer ); LSET layermask; wxASSERT( top_layer <= bottom_layer ); wxASSERT( m_Layer <= m_BottomLayer ); // LAYER_IDs are numbered from front to back, this is top to bottom. for( LAYER_NUM id = top_layer; id <= bottom_layer; ++id ) for( LAYER_NUM id = m_Layer; id <= m_BottomLayer; ++id ) { layermask.set( id ); } Loading Loading @@ -787,6 +782,10 @@ void VIA::Draw( EDA_DRAW_PANEL* panel, wxDC* aDC, GR_DRAWMODE aDrawMode, && ( color & HIGHLIGHT_FLAG ) != HIGHLIGHT_FLAG ) return; // Only draw the via if at least one of the layers it crosses is being displayed if( !( brd->GetVisibleLayers() & GetLayerSet() ).any() ) return; if( DisplayOpt.ContrastModeDisplay ) { if( !IsOnLayer( curr_layer ) ) Loading pcbnew/pcb_painter.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -336,6 +336,11 @@ void PCB_PAINTER::draw( const VIA* aVia, int aLayer ) VECTOR2D center( aVia->GetStart() ); double radius; // Only draw the via if at least one of the layers it crosses is being displayed BOARD* brd = aVia->GetBoard( ); if( !( brd->GetVisibleLayers() & aVia->GetLayerSet() ).any() ) return; // Choose drawing settings depending on if we are drawing via's pad or hole if( aLayer == ITEM_GAL_LAYER( VIA_THROUGH_VISIBLE ) ) { Loading Loading
pcbnew/class_pcb_layer_widget.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -413,6 +413,7 @@ void PCB_LAYER_WIDGET::OnLayerVisible( int aLayer, bool isVisible, bool isFinal { KIGFX::VIEW* view = galCanvas->GetView(); view->SetLayerVisible( aLayer, isVisible ); view->RecacheAllItems( true ); } if( isFinal ) Loading
pcbnew/class_track.cpp +8 −9 Original line number Diff line number Diff line Loading @@ -393,17 +393,12 @@ LSET VIA::GetLayerSet() const // VIA_BLIND_BURIED or VIA_MICRVIA: LAYER_ID bottom_layer, top_layer; // LayerPair() knows how layers are stored LayerPair( &top_layer, &bottom_layer ); LSET layermask; wxASSERT( top_layer <= bottom_layer ); wxASSERT( m_Layer <= m_BottomLayer ); // LAYER_IDs are numbered from front to back, this is top to bottom. for( LAYER_NUM id = top_layer; id <= bottom_layer; ++id ) for( LAYER_NUM id = m_Layer; id <= m_BottomLayer; ++id ) { layermask.set( id ); } Loading Loading @@ -787,6 +782,10 @@ void VIA::Draw( EDA_DRAW_PANEL* panel, wxDC* aDC, GR_DRAWMODE aDrawMode, && ( color & HIGHLIGHT_FLAG ) != HIGHLIGHT_FLAG ) return; // Only draw the via if at least one of the layers it crosses is being displayed if( !( brd->GetVisibleLayers() & GetLayerSet() ).any() ) return; if( DisplayOpt.ContrastModeDisplay ) { if( !IsOnLayer( curr_layer ) ) Loading
pcbnew/pcb_painter.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -336,6 +336,11 @@ void PCB_PAINTER::draw( const VIA* aVia, int aLayer ) VECTOR2D center( aVia->GetStart() ); double radius; // Only draw the via if at least one of the layers it crosses is being displayed BOARD* brd = aVia->GetBoard( ); if( !( brd->GetVisibleLayers() & aVia->GetLayerSet() ).any() ) return; // Choose drawing settings depending on if we are drawing via's pad or hole if( aLayer == ITEM_GAL_LAYER( VIA_THROUGH_VISIBLE ) ) { Loading