PNS: Fix off-by-one in dragCornerInternal

Fixes https://gitlab.com/kicad/code/kicad/-/issues/10919


(cherry picked from commit 8d8f96b094)
This commit is contained in:
Jon Evans 2022-06-01 17:11:03 -04:00
parent dee22a31d9
commit 40593930d0
1 changed files with 1 additions and 1 deletions

View File

@ -709,7 +709,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, -1 ).Reverse(), snapped ).Reverse();
dragCornerInternal( m_line.Slice( aIndex, -1 ).Reverse(), snapped ).Reverse();
path.Append( path_rev );
}