1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Fixed crash on empty paths

Fixes #339
This commit is contained in:
Martin Tůma 2021-01-23 18:24:58 +01:00
parent cd571f4662
commit 2e10c609f4

View File

@ -864,6 +864,8 @@ void GUI::loadData(const Data &data)
for (int i = 0; i < paths.count(); i++) { for (int i = 0; i < paths.count(); i++) {
PathItem *pi = paths.at(i); PathItem *pi = paths.at(i);
if (!pi)
continue;
for (int j = 0; j < graphs.count(); j++) for (int j = 0; j < graphs.count(); j++)
pi->addGraph(graphs.at(j).at(i)); pi->addGraph(graphs.at(j).at(i));