Connectors attach to boundary rather than center

Bug #168607 reported by Bug Importer
This bug report is a duplicate of:  Bug #168360: Connectors between groups act weird. Edit Remove
4
Affects Status Importance Assigned to Milestone
Inkscape
Incomplete
Low
Unassigned

Bug Description

After a using "Document Properties -> Fit page to selection" connectors
become unstable. If a rectangle with a connector attached is moved, the
connector will reattach itself at the boundary at the wrong place. It may
even obstruct the rectangle.

Version: Inkscape 0.45.1, built Mar 21 2007, Binary download for Mac OSX

Reproduction of bug:

1) Start a new document
2) Draw two rectangles on the empty page shown. Connect them with a
connector.
3) Test: Move one of the rectangles around: The connector follows the
center of this rectangle just as it should
4) Select the two rectangles and the connector.
5) Execute: "File -> Document Properties -> Fit page to selection"
6) Observation: The page fits to the selection. The connector does not
move.
7) Move one of the rectangles. The connector jumps to a wrong position at
the boundary. It is impossible to align it again properly. In fact, if
new rectangles and new connectors are created, then the new connectors will
show the same wrong behavior.

Remark: I believe that this behaviour has also been observed by the author
of the comment to bug "[ 1660547 ] Connectors between groups act weird"

I attach 3 files:
1) 4 rectangles, two connected, everything works fine
2) same file after using "Fit page to selection"
3) moved one of the rectangles to show wrong attachment

I also could produce wrong attachments with 2 rectangles only. However
using only two rectangles I could not produce a result where the connector
overlaps the rectangle.

differences between files 1 and 2:

   width="744.09448819"
   height="1052.3622047"

->

   width="462.85715"
   height="628.57141"

This is expected since we have changed the page dimensions

   sodipodi:docname="connector_bug_1.svg"
   inkscape:output_extension="org.inkscape.output.svg.inkscape">

->

   sodipodi:docname="connector_bug_2.svg"
   inkscape:output_extension="org.inkscape.output.svg.inkscape"
   version="1.0">

The text: "version="1.0"" is unexpected. Could this be the reason for the
bug?

     id="layer1">

->

     id="layer1"
     transform="translate(-22.857143,-112.36218)">

This translation is caused by the change of page dimensions. After all,
the relative position of the rectangles to the page boundaries has
changed.

Remark: The bug still shows if the text "version="1.0"" is deleted. If
the translation is also deleted and the rectangles moved by hand back into
the page, everything appears to be fine.

Tags: connectors
Revision history for this message
Bug Importer (bug-importer) wrote :
Revision history for this message
Marcuskr (marcuskr) wrote :

Originator: NO

As a followup to my bug-report [ 1712460 ] which I posted yesterday, I did
a little more testing and I am now sure that the culprit is the statement
transform="translate(-22.857143,-112.36218)". If this line is deleted and
the translations are made manually, then the connectors work and all
positions get updated. The new file will not have this transform
statement.

Work-around for this bug: Do not use the command "Fit page to selection"
but instead use the width and height boxes to its right. This avoids the
generation of the translate statement and the connectors continue to work
as they should.

Bryce Harrington (bryce)
Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Ryan Desmond (desmor) wrote :

Its been several months, I just wanted to note that this is still a bug as of 0.46 and yesterday's (7-7-08) snapshot build.

Revision history for this message
wgacquer (wgacquer) wrote :

yes, this very annoying bug is still in the 0.46 release. Please find an attached svg that illustrates it.

jazzynico (jazzynico)
tags: added: connectors
removed: other
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

I can't reproduce this in ubuntu lucid alpha 2, with inkscape 0.47. Is it fair to assume that this has been fixed by now?

Changed in inkscape:
status: Confirmed → Incomplete
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.