Check final corner of rectangle before merging.
Fixes https://gitlab.com/kicad/code/kicad/issues/4766
This commit is contained in:
parent
6d56ba2072
commit
40847c055d
|
@ -286,7 +286,7 @@ void GRAPHICS_CLEANER::mergeRects()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( right && bottom )
|
if( right && bottom && right->end == bottom->end )
|
||||||
{
|
{
|
||||||
left->seg->SetFlags( IS_DELETED );
|
left->seg->SetFlags( IS_DELETED );
|
||||||
top->seg->SetFlags( IS_DELETED );
|
top->seg->SetFlags( IS_DELETED );
|
||||||
|
|
Loading…
Reference in New Issue