Incorrect connector layout on load in existing document window (connector-avoid undone)

Bug #1421061 reported by rob
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

the attached file looks as intended on kubuntu linux, Inkscape 0.48.4 r9939 (Jan 22 2014).

But when I go to my mac, macosx 10.9, using the precompiled inkscape 0.91 dmg file, it looks bad: the lines are in the wrong place.

I would expect it to look the same and it doesn't.

Tags: connectors
Revision history for this message
rob (hankin-robin) wrote :
Revision history for this message
su_v (suv-lp) wrote :

Not reproduced as reported with Inkscape 0.91 on OS X 10.7.5 - the layout of the connectors is the same as with 0.48.4 and 0.48.5

What makes a difference however is how the file is opened in Inkscape:
a) launch the file directly (e.g. drag&drop on Inkscape icon)
b) launch inkscape, open file from within Inkscape ('File > Open' or 'File > Open Recent'
   (this reuses the empty document window)

Method b) results in incorrect initial layout of the connector lines, meothd a) on the other hand renders in 0.48.4, 0.48.5 and 0.91 as expected AFAICT.

Likely already tracked in one of the various earlier connector-related reports.

tags: added: connectors
Revision history for this message
su_v (suv-lp) wrote :

Same results on Ubuntu 14.04 with Inkscape 0.48.4-3ubuntu2 and Inkscape 0.91.0+40~ubuntu14.04.1 - the version does make no difference, but the method how the file is opened does.

su_v (suv-lp)
summary: - svg file looks different in inkscape 0.91 and 0.48.4
+ svg file looks different in inkscape 0.91 and 0.48.4 (connector layout)
Revision history for this message
su_v (suv-lp) wrote :

Further tests with older versions:
- not reproduced with Inkscape 0.47
- reproduced with Inkscape 0.48.0 - 0.48.5
- reproduced with Inkscape 0.91

Actual issue: when opening the SVG file in such a way that an existing Inkscape document window (new, unchanged) is reused, the rerouting of those connectors which actively avoid objects appears to get undone on load (even though this is not registered in the undo history).

The correct routing can be restored e.g. by applying 'Undo' via keyboard shortcut (Ctrl+Z) right after loading has finished, which triggers these console messages:
** (inkscape:75010): WARNING **: Incomplete undo transaction:

** (inkscape:75010): WARNING **: Event: Set attribute d to "M 604.68121,712.55809 349.66939,934.39355" on #<Element:0x0x11e451670>

** (inkscape:75010): WARNING **: Event: Set attribute d to "M 542.45691,579.10399 336.08713,934.39355" on #<Element:0x0x11e455850>

Affected connectors (both higher in z-order than the connected and avoided objects): path4418, path4392
Avoided objects (both lower in z-order relative to the connecter lines): rect4402, rect4295

Revision history for this message
su_v (suv-lp) wrote :

Reduced test case, purged of all unrelated elements.

Revision history for this message
su_v (suv-lp) wrote :

Old regression, introduced with the initial release of Inkscape 0.48.

(Note to bug team: likely mentioned in older reports already, but I failed so far to find it)

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
summary: - svg file looks different in inkscape 0.91 and 0.48.4 (connector layout)
+ Incorrect connector layout on load in existing document window
+ (connector-avoid undone)
jazzynico (jazzynico)
Changed in inkscape:
status: Confirmed → Triaged
Revision history for this message
Jonathan Hofinger (jhofinger) wrote :

While I can replicate this issue in 0.92.4, I'm unable to replicate in Inkscape 1.1-dev (12e2a09, 2020-02-19), Windows 10. Please reopen on http://inkscape.org/report if the problem occurs again.

Note that undo right after opening still changes routing for avoided shape, which is tracked here: https://gitlab.com/inkscape/inbox/-/issues/1983

Closed by: https://gitlab.com/jhofinger

Changed in inkscape:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.