diff --git a/pcbnew/tools/point_editor.cpp b/pcbnew/tools/point_editor.cpp index b9975c2e2d..39e1d25224 100644 --- a/pcbnew/tools/point_editor.cpp +++ b/pcbnew/tools/point_editor.cpp @@ -732,10 +732,9 @@ void POINT_EDITOR::setAltConstraint( bool aEnabled ) { EDIT_LINE* line = dynamic_cast( m_editedPoint ); - if( line ) + if( line && m_editPoints->GetParent()->Type() == PCB_ZONE_AREA_T ) { - if( m_editPoints->GetParent()->Type() == PCB_ZONE_AREA_T ) - m_altConstraint.reset( (EDIT_CONSTRAINT*)( new EC_CONVERGING( *line, *m_editPoints ) ) ); + m_altConstraint.reset( (EDIT_CONSTRAINT*)( new EC_CONVERGING( *line, *m_editPoints ) ) ); } else {