diff --git a/pcbnew/router/pns_kicad_iface.cpp b/pcbnew/router/pns_kicad_iface.cpp index 1ae418de36..6f4b89f84e 100644 --- a/pcbnew/router/pns_kicad_iface.cpp +++ b/pcbnew/router/pns_kicad_iface.cpp @@ -884,7 +884,7 @@ std::unique_ptr PNS_KICAD_IFACE_BASE::syncPad( PAD* aPad ) if( shapes && shapes->Size() == 1 ) { - solid->SetShape( shapes->Clone() ); + solid->SetShape( shapes->Shapes()[0]->Clone() ); } else { @@ -1616,7 +1616,7 @@ void PNS_KICAD_IFACE::SetView( KIGFX::VIEW* aView ) delete m_debugDecorator; - auto dec = new PNS_PCBNEW_DEBUG_DECORATOR(); + auto dec = new PNS_PCBNEW_DEBUG_DECORATOR( m_view ); m_debugDecorator = dec; if( ADVANCED_CFG::GetCfg().m_ShowRouterDebugGraphics )