This also allows for easier migration to DRAWSEGMENT::S_RECTs by auto-converting 4 rectilinear lines to a rectangle.
Also fixes a crash bug opening Edit Tracks and Vias dialog.