Do not add debug items to view if debug flag isn't enabled
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8510
This commit is contained in:
parent
bd59da3642
commit
85ca85652d
|
@ -1669,7 +1669,9 @@ void PNS_KICAD_IFACE::SetView( KIGFX::VIEW* aView )
|
|||
m_debugDecorator = dec;
|
||||
|
||||
dec->SetDebugEnabled( ADVANCED_CFG::GetCfg().m_ShowRouterDebugGraphics );
|
||||
dec->SetView( m_view );
|
||||
|
||||
if( ADVANCED_CFG::GetCfg().m_ShowRouterDebugGraphics )
|
||||
dec->SetView( m_view );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue