Browse Source

Check final corner of rectangle before merging.

Fixes https://gitlab.com/kicad/code/kicad/issues/4766
pull/16/head
Jeff Young 5 years ago
parent
commit
40847c055d
  1. 2
      pcbnew/graphics_cleaner.cpp

2
pcbnew/graphics_cleaner.cpp

@ -286,7 +286,7 @@ void GRAPHICS_CLEANER::mergeRects()
}
}
if( right && bottom )
if( right && bottom && right->end == bottom->end )
{
left->seg->SetFlags( IS_DELETED );
top->seg->SetFlags( IS_DELETED );

Loading…
Cancel
Save