Misplaced connector in diagram

Bug #897204 reported by Zirneklitis
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Undecided
Unassigned
Ubuntu
Confirmed
Undecided
Unassigned

Bug Description

In reopened SVG diagram the connectors are placed differently than it was saved (see attached images).

Reproduced with Inkscape 0.48.2 r9819 (Windows XP)

Tags: connectors
Revision history for this message
Zirneklitis (karlo-k) wrote :
Revision history for this message
Zirneklitis (karlo-k) wrote :
Revision history for this message
Zirneklitis (karlo-k) wrote :
su_v (suv-lp)
tags: added: connectors
removed: diagram
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP, Inkscape 0.48.3.1 and trunk revision 11497.

When opening the file, the connectors are placed as expected, but reloading the file (File>Revert) shows misplaced connectors.
Note that opening the file triggers an automatic action on the connectors curvature (see undo history).

Changed in inkscape:
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

> When opening the file, the connectors are placed as expected,
> but reloading the file (File>Revert) shows misplaced connectors.

Not reproduced with Inkscape 0.48, 0.48.1, 0.48.2, 0.48.3.1 on OS X 10.7.4 (with default preferences): connectors initially render as expected (like dia_as_saved.png), and do not change on 'File > Revert'.

> Note that opening the file triggers an automatic action
> on the connectors curvature (see undo history).

Not reproduced either (tested launching Inkscape with the file name as argument, opening the file from within Inkscape reusing an existing document window, and opening from within Inkscape spawning a new document window).

Haven't figured out yet why this doesn't happen on my system.

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

AFAICT the file seems to trigger two known issues with connectors:

1) Inconsistent layout of orthogonal connectors:
Tests with the sample file using the same layout but connecting individual paths with optimized transforms instead of the groups still show unexpected flips of the layout of the orthogonal connectors, e.g. depending on whether the connector between 'Choice' and 'Exit 2' is present, and whether or not a random loose connector is drawn elsewhere on the page.

Related:
Bug #716168 “Can not do top-left and bottom-left angles with connectors”
<https://bugs.launchpad.net/inkscape/+bug/716168>

2) Connected groups with child objects using a preserved matrix() transformation:
Moving the group in the middle (rotated scaled rectangle, text object "Choice") does trigger incorrect routing of the connectors (in addition to the unexpected and uncontrollable flipping of the orthogonal layout): the connector end points no longer match the current position of the moved connected group. This occurs AFAICT due to a matrix() transform on the bottom-most object inside a connected group:

    <g
       id="g3792"
       transform="translate(-11.590225,5.3578939)">
      <rect
         transform="matrix(0.70710678,-0.70710678,0.70710678,0.70710678,0,0)"
         y="767.802"
         x="-167.01259"
         height="159.73405"
         width="159.73405"
         id="rect3759"
         style="fill:#d7e3f4;stroke:#000000;stroke-opacity:1" />
      <text
         sodipodi:linespacing="125%"
         id="text3783"
         y="675.33014"
         x="475.31036"
         style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
         xml:space="preserve"><tspan
           y="675.33014"
           x="475.31036"
           id="tspan3785"
           sodipodi:role="line">Choice</tspan></text>
    </g>

Related:
Bug #617810 “Connector markers alignment to group depends on orientation (should be invariant)”
<https://bugs.launchpad.net/inkscape/+bug/617810>
(see comment #10 and #11)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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