Check final corner of rectangle before merging.

Fixes https://gitlab.com/kicad/code/kicad/issues/4766
This commit is contained in:
Jeff Young 2020-06-30 21:01:23 +01:00
parent 6d56ba2072
commit 40847c055d
1 changed files with 1 additions and 1 deletions

View File

@ -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 );