mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
parent
e5d5c06a0e
commit
f0be0d6774
@ -880,7 +880,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());
|
||||||
int index = _graphTabWidget->currentIndex();
|
|
||||||
|
|
||||||
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);
|
||||||
@ -890,8 +889,8 @@ 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) {
|
if (gt) {
|
||||||
pi->setGraph(index);
|
pi->setGraph(_tabs.indexOf(gt));
|
||||||
pi->setMarkerPosition(gt->sliderPosition());
|
pi->setMarkerPosition(gt->sliderPosition());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user