Fix micro via size incorrect when adding it in pns router
This commit is contained in:
parent
a16dd894d5
commit
4f71260319
|
@ -201,11 +201,13 @@ void SCH_BUS_ENTRY_BASE::Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint&
|
||||||
// Draw pin targets if part is being dragged
|
// Draw pin targets if part is being dragged
|
||||||
bool dragging = ( aPanel->GetScreen()->GetCurItem() == this );
|
bool dragging = ( aPanel->GetScreen()->GetCurItem() == this );
|
||||||
|
|
||||||
if( m_isDanglingStart || dragging ) {
|
if( m_isDanglingStart || dragging )
|
||||||
|
{
|
||||||
GRCircle( clipbox, aDC, m_pos.x + aOffset.x, m_pos.y + aOffset.y, TARGET_BUSENTRY_RADIUS, 0, color );
|
GRCircle( clipbox, aDC, m_pos.x + aOffset.x, m_pos.y + aOffset.y, TARGET_BUSENTRY_RADIUS, 0, color );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_isDanglingEnd || dragging ) {
|
if( m_isDanglingEnd || dragging )
|
||||||
|
{
|
||||||
GRCircle( clipbox, aDC, m_End().x + aOffset.x, m_End().y + aOffset.y, TARGET_BUSENTRY_RADIUS, 0, color );
|
GRCircle( clipbox, aDC, m_End().x + aOffset.x, m_End().y + aOffset.y, TARGET_BUSENTRY_RADIUS, 0, color );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -437,10 +437,15 @@ bool ROUTER_TOOL::onViaCommand( VIATYPE_T aType )
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sizes.SetViaType( aType );
|
sizes.SetViaType( aType );
|
||||||
m_router->ToggleViaPlacement();
|
if( VIA_MICROVIA == aType )
|
||||||
|
{
|
||||||
|
sizes.SetViaDiameter( bds.GetCurrentMicroViaSize() );
|
||||||
|
sizes.SetViaDrill( bds.GetCurrentMicroViaDrill() );
|
||||||
|
}
|
||||||
|
|
||||||
m_router->UpdateSizes( sizes );
|
m_router->UpdateSizes( sizes );
|
||||||
|
m_router->ToggleViaPlacement();
|
||||||
|
|
||||||
m_router->Move( m_endSnapPoint, m_endItem ); // refresh
|
m_router->Move( m_endSnapPoint, m_endItem ); // refresh
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue