Fix old copy/paste error (from 2017, believe it or not).
Fixes https://gitlab.com/kicad/code/kicad/issues/11487
This commit is contained in:
parent
dd1abcbee9
commit
d9f75556bd
|
@ -2951,7 +2951,7 @@ int DRAWING_TOOL::DrawVia( const TOOL_EVENT& aEvent )
|
||||||
{
|
{
|
||||||
for( ZONE* z : m_board->Zones() )
|
for( ZONE* z : m_board->Zones() )
|
||||||
{
|
{
|
||||||
if( z->IsOnLayer( m_frame->GetActiveLayer() ) )
|
if( z->IsOnLayer( layer ) )
|
||||||
{
|
{
|
||||||
if( z->HitTestFilledArea( layer, position ) )
|
if( z->HitTestFilledArea( layer, position ) )
|
||||||
return z->GetNetCode();
|
return z->GetNetCode();
|
||||||
|
|
Loading…
Reference in New Issue