mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-26 04:00:49 +01:00
Properly fix the areas crash
This commit is contained in:
parent
aceb840700
commit
ed6a81c9e7
@ -866,8 +866,6 @@ void GUI::loadData(const Data &data)
|
|||||||
paths = _mapView->loadData(data);
|
paths = _mapView->loadData(data);
|
||||||
|
|
||||||
GraphTab *gt = static_cast<GraphTab*>(_graphTabWidget->currentWidget());
|
GraphTab *gt = static_cast<GraphTab*>(_graphTabWidget->currentWidget());
|
||||||
if (!gt)
|
|
||||||
return;
|
|
||||||
int index = _graphTabWidget->currentIndex();
|
int index = _graphTabWidget->currentIndex();
|
||||||
|
|
||||||
for (int i = 0; i < paths.count(); i++) {
|
for (int i = 0; i < paths.count(); i++) {
|
||||||
@ -878,9 +876,11 @@ void GUI::loadData(const Data &data)
|
|||||||
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));
|
||||||
|
|
||||||
|
if (gt && index >= 0) {
|
||||||
pi->setGraph(index);
|
pi->setGraph(index);
|
||||||
pi->setMarkerPosition(gt->sliderPosition());
|
pi->setMarkerPosition(gt->sliderPosition());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI::openPOIFile()
|
void GUI::openPOIFile()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user