mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-28 01:14:24 +02:00
Fixed crash when there is no graph in the data
This commit is contained in:
@ -866,6 +866,8 @@ 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++) {
|
||||||
|
Reference in New Issue
Block a user