Connectors attach to boundary rather than center
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=
height=
->
width=
height=
This is expected since we have changed the page dimensions
sodipodi:
inkscape:
->
sodipodi:
inkscape:
version="1.0">
The text: "version="1.0"" is unexpected. Could this be the reason for the
bug?
id="layer1">
->
id="layer1"
transform=
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.
Changed in inkscape: | |
importance: | Undecided → Low |
status: | New → Confirmed |
tags: |
added: connectors removed: other |
Changed in inkscape: | |
status: | Confirmed → Incomplete |
Originator: NO
As a followup to my bug-report [ 1712460 ] which I posted yesterday, I did "translate( -22.857143, -112.36218) ". If this line is deleted and
a little more testing and I am now sure that the culprit is the statement
transform=
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.