router: don't use compound pad shapes if pad contains a single primitive shape

This commit is contained in:
Tomasz Wlostowski 2020-10-19 23:34:24 +02:00
parent a4bd2ad8c6
commit 325300bd76
1 changed files with 2 additions and 2 deletions

View File

@ -884,7 +884,7 @@ std::unique_ptr<PNS::SOLID> PNS_KICAD_IFACE_BASE::syncPad( PAD* aPad )
if( shapes && shapes->Size() == 1 ) if( shapes && shapes->Size() == 1 )
{ {
solid->SetShape( shapes->Clone() ); solid->SetShape( shapes->Shapes()[0]->Clone() );
} }
else else
{ {
@ -1616,7 +1616,7 @@ void PNS_KICAD_IFACE::SetView( KIGFX::VIEW* aView )
delete m_debugDecorator; delete m_debugDecorator;
auto dec = new PNS_PCBNEW_DEBUG_DECORATOR(); auto dec = new PNS_PCBNEW_DEBUG_DECORATOR( m_view );
m_debugDecorator = dec; m_debugDecorator = dec;
if( ADVANCED_CFG::GetCfg().m_ShowRouterDebugGraphics ) if( ADVANCED_CFG::GetCfg().m_ShowRouterDebugGraphics )