mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fixed QT4 build
This commit is contained in:
parent
ecb82952f6
commit
967e307be9
@ -1,3 +1,4 @@
|
||||
#include <QStringList>
|
||||
#include "csv.h"
|
||||
|
||||
/*
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <QStringList>
|
||||
#include "csv.h"
|
||||
#include "csvparser.h"
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <cmath>
|
||||
#include <QStringList>
|
||||
#include "csv.h"
|
||||
#include "cupparser.h"
|
||||
|
||||
@ -21,7 +22,7 @@ static double latitude(const QString &str)
|
||||
return NAN;
|
||||
|
||||
double dd = deg + min/60.0;
|
||||
return (str.right(1) == 'S') ? -dd : dd;
|
||||
return (str.right(1) == "S") ? -dd : dd;
|
||||
}
|
||||
|
||||
static double longitude(const QString &str)
|
||||
@ -38,7 +39,7 @@ static double longitude(const QString &str)
|
||||
return NAN;
|
||||
|
||||
double dd = deg + min/60.0;
|
||||
return (str.right(1) == 'W') ? -dd : dd;
|
||||
return (str.right(1) == "W") ? -dd : dd;
|
||||
}
|
||||
|
||||
static double elevation(const QString &str)
|
||||
|
Loading…
Reference in New Issue
Block a user