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:
parent
dee22a31d9
commit
40593930d0
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue