Arcs jumping in editor

Bug #1849786 reported by Jiri Srba
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TAPAAL
Fix Released
Critical
Kenneth Yrke Jørgensen
Dev
Triaged
Critical
Kenneth Yrke Jørgensen

Bug Description

To reproduce:

draw one place and under it about 4 transitions in one line, very close to each other.
Now draw an arc from place to transition number 2, then to number 3 and then to number 1
and the already drawn arrows start to behave in a weird way (jump from a transition to transition).

Related branches

Revision history for this message
Jiri Srba (srba) wrote :

The same problem is with inhibitor arcs. Once the net is saved and opened, the arcs point to the correct transitions however.

Changed in tapaal:
assignee: Peter Haahr Taankvist (ptaank) → Kenneth Yrke Jørgensen (yrke)
status: New → Confirmed
Revision history for this message
Kenneth Yrke Jørgensen (yrke) wrote :

To Reproduce,

Create a new with a place and a number of transitions around.

Create new arc from place, hover/snap to a number of transitions and select one transition.
Create a new arc from place, hover/snap to a transition, if the transition was hover/snaped to by the old arc, the old arc will update its position to the current selected transition.
Will only work for transitions.

Revision history for this message
Kenneth Yrke Jørgensen (yrke) wrote :

Transitions uses an internal ArcAngleCompareObject, used to save the input angle of arcs. If a arc is removed from the transition, the ArcAngleCompareObject is not updated. When updateEndPoint is called on a transition, this will make all arcs that have a ArcAngleCompareObject jump to the transition.

Revision history for this message
Peter Haahr Taankvist (ptaank) wrote :

It seems that it is removed when you drag it on to the canvas, but kept if you drag it on to another transition directly without hovering the canvas.

Changed in tapaal:
status: Confirmed → In Progress
Jiri Srba (srba)
Changed in tapaal:
status: In Progress → Fix Committed
Jiri Srba (srba)
Changed in tapaal:
status: Fix Committed → Fix Released
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.