Browse Source

Add 45º constraints to lines when moving with CTRL

Fixes: lp:1774750
* https://bugs.launchpad.net/kicad/+bug/1774750
pull/17/head
Seth Hillbrand 8 years ago
parent
commit
0a91f0bc9c
  1. 5
      pcbnew/tools/point_editor.cpp

5
pcbnew/tools/point_editor.cpp

@ -732,10 +732,9 @@ void POINT_EDITOR::setAltConstraint( bool aEnabled )
{
EDIT_LINE* line = dynamic_cast<EDIT_LINE*>( 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<EDIT_POINT>*)( new EC_CONVERGING( *line, *m_editPoints ) ) );
m_altConstraint.reset( (EDIT_CONSTRAINT<EDIT_POINT>*)( new EC_CONVERGING( *line, *m_editPoints ) ) );
}
else
{

Loading…
Cancel
Save