Dragging graphic line should drag connected lines

Bug #1664088 reported by John Beard on 2017-02-13
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Tomasz Wlostowski

Bug Description

When dragging a graphic line, any graphic lines that connect to that line (i.e. have an endpoint in the same place) should have that endpoint dragged too.

This is consistent with the behaviour of the line tool in drawing chained polylines, and would be helpful when editing things like PCB borders.

The lines are not stored in the PCB file as a chain of segments, but it should be "fairly" straightforward to support this by interating the list of all segments and checking endpoints.

The best outcome might be use of the point editor tool, like for zones, complete with "make corner" and "close", as well as the more advanced graphical editor, but this might be harder to do.

Side note: when done, the icon for the Line Tool should probably be the add_polygon icon (which is more like add polyline)

description: updated
Seth Hillbrand (sethh) wrote :

This is part of some geometry work along with lp:594060

Changed in kicad:
assignee: nobody → Seth Hillbrand (sethh)
milestone: none → 6.0.0-rc1
status: New → In Progress
Maciej Suminski (orsonmmz) wrote :

Should there be a way to disconnect line segments with common points? I imagine this is also a valid use case (e.g. rounding a corner by inserting an arc).

Seth Hillbrand (sethh) wrote :

Agreed. Drag vs move just like tracks.

Seth Hillbrand (sethh) on 2018-12-11
Changed in kicad:
assignee: Seth Hillbrand (sethh) → Tomasz Wlostowski (twlostow)
Jeff Young (jeyjey) wrote :

I implemented a somewhat simplistic version of this for Eeschema line segments. See EE_POINT_EDITOR's cases for SCH_LINE_T.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers