bardsoftware / ganttproject

Official GanttProject repository.
http://ganttproject.biz
GNU General Public License v3.0
837 stars 300 forks source link

Task duration below zero #2428

Closed roman-g-levin closed 2 months ago

roman-g-levin commented 4 months ago

At a moment GanttProject refused to open the project and froze. I looked for the error by manually deleting tasks in the .gan file. The program freeze was caused by a task with a parameter duration = "-4", which has subtasks:

<task id="1628" name="MyTaskName" color="#000000" meeting="false" start="2024-03-11" duration="-4" complete="0" thirdDate="2024-01-07" thirdDate-constraint="0" expand="false">

I have no understanding or ideas how the duration parameter became negative.