PNS: fix off-by-one in dragCorner45

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6644
This commit is contained in:
Jon Evans 2020-12-27 15:58:36 -05:00
parent e33a331095
commit 2cdf9875b9
1 changed files with 1 additions and 1 deletions

View File

@ -532,7 +532,7 @@ void LINE::dragCorner45( const VECTOR2I& aP, int aIndex )
// fixme: awkward behaviour for "outwards" drags
path = dragCornerInternal( m_line.Slice( 0, aIndex ), snapped );
SHAPE_LINE_CHAIN path_rev =
dragCornerInternal( m_line.Slice( aIndex, -1 ).Reverse(), snapped ).Reverse();
dragCornerInternal( m_line.Slice( aIndex + 1, -1 ).Reverse(), snapped ).Reverse();
path.Append( path_rev );
}