Connector tool: Incorrect routing on load depending on z order
Migrated from https://bugs.launchpad.net/inkscape/+bug/745784
Steps to reproduce:
- open Inkscape
- create two rectangles
- connect them with the rectangle tool
- (Clone each shape and drag to a nearby location)
- (Draw a connector between the clones)
- (Choose the connector and click on Object | Lower to bottom)
- select the line and click Lower to Bottom
- Save the file
- open the file
Steps 3-5 are not necessary to trigger the bug, but are given in the original Launchpad bug.
What happened?
The connector is rendered as M 0,0 V 0
. Move one of the rectangles to make the connector render correctly.
In 0.92.x, the bug also exists, but pressing "Undo" right after loading the file restores all connectors. This does not work in master.
Another example is given in https://bugs.launchpad.net/inkscape/+bug/1221241. The file https://bugs.launchpad.net/inkscape/+bug/1221241/comments/4 has the exact same isse, the connectors are below the objects.
And another in https://bugs.launchpad.net/inkscape/+bug/556467, but I can't replicate that one.
What should have happened?
The connectors are loaded correctly.
Inkscape Version and Operating System:
- Inkscape Version: 1.1-dev (12e2a09, 2020-02-19)
- Operating System: Windows 10
- Operating System version: 10.0.18362
From Launchpad:
- Inkscape 0.48.1 and 0.48+devel r10133 on OS X 10.5.8 (i386)
- Inkscape 0.92pre1 15054 (GTK3), Arch Linux 64-bit, KDE Plasma 5
Edited by Jonathan Neuhauser