Browse Source

Fix fillet lines, when line angle is 0 or 180

Check angle of line before creating Fillet

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15966
newinvert
levanlap2502 2 years ago
committed by Seth Hillbrand
parent
commit
faeec25557
  1. 2
      pcbnew/tools/item_modification_routine.cpp

2
pcbnew/tools/item_modification_routine.cpp

@ -112,6 +112,8 @@ void LINE_FILLET_ROUTINE::ProcessLinePair( PCB_SHAPE& aLineA, PCB_SHAPE& aLineB
// Nothing to do
return;
if( seg_a.Angle( seg_b ).IsHorizontal() )
return;
SHAPE_ARC sArc( seg_a, seg_b, m_filletRadiusIU );
VECTOR2I t1newPoint, t2newPoint;

Loading…
Cancel
Save