Net statistics will show wrong values for "Shown component" after running Remove orphan transition/place
Bug #1892354 reported by
Kenneth Yrke Jørgensen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TAPAAL |
Fix Committed
|
Low
|
Unassigned |
Bug Description
To reproduce
- create a new net
- add a place
- add a new component
- add a place and transition in the new component
- select the first component
- Open Net statistics, observe show component column displays 1 place, 0 transitions
- Click remove orphan places
Observe show component column displays 0 places, 1 transition.
Expected to show 0 places, 0 transitions.
Changed in tapaal: | |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
The problem is in function removeOrphanTra nsitions/ Place
the net statistics is run for each template, and the content shown will be from the last template model() .getStatistics( );
for (Template template : templates) {
...
contents = template.
}