Railway-Op-Sim / RailOSTimetableEditor

Qt based timetable editor for Railway Operation Simulator
https://railway-op-sim.github.io/RailOSTimetableEditor/index.html
GNU General Public License v3.0
3 stars 0 forks source link

Duplicate station stop times #33

Open Daniel-Gill opened 3 years ago

Daniel-Gill commented 3 years ago

It looks like there's an issue with having a service stop at two stations with the same arr/dep times. Double clicking the edit the station in the editor crashes the program. Please see the below image:

issue1

When I try to save the timetable through the program, it returns a .ttb file as if nothing happened. (With the stops intact.)

artemis-beta commented 3 years ago

I will download Sheffield super tram and try the same

artemis-beta commented 3 years ago

The crash is due to it trying to convert a null pointer to a string (empty cells give null pointers), so I have fixed the crash. Now need to work out why it is empty.

artemis-beta commented 3 years ago

This seems to be related to sortItems in Qt which I use to ensure the displayed timetable is always chronological. For opening timetables this is not needed, but where the user inserts entries I think it might be required. I don't know why it wipes cells though.