Net statistics will show wrong values for "Shown component" after running Remove orphan transition/place

Bug #1892354 reported by Kenneth Yrke Jørgensen
6
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.

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

The problem is in function removeOrphanTransitions/Place

the net statistics is run for each template, and the content shown will be from the last template
for (Template template : templates) {
 ...
 contents = template.model().getStatistics();
}

Changed in tapaal:
status: New → Confirmed
importance: Undecided → Low
Jiri Srba (srba)
Changed in tapaal:
status: Confirmed → Fix Committed
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.