mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-04 14:49:30 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
6ba7493b59 | |||
2e10c609f4 | |||
cd571f4662 |
@ -1,4 +1,4 @@
|
||||
version: 8.2.{build}
|
||||
version: 8.3.{build}
|
||||
|
||||
configuration:
|
||||
- Release
|
||||
|
@ -3,7 +3,7 @@ unix:!macx {
|
||||
} else {
|
||||
TARGET = GPXSee
|
||||
}
|
||||
VERSION = 8.2
|
||||
VERSION = 8.3
|
||||
|
||||
QT += core \
|
||||
gui \
|
||||
|
@ -7,7 +7,7 @@
|
||||
; The name of the installer
|
||||
Name "GPXSee"
|
||||
; Program version
|
||||
!define VERSION "8.2"
|
||||
!define VERSION "8.3"
|
||||
|
||||
; The file to write
|
||||
OutFile "GPXSee-${VERSION}.exe"
|
||||
|
@ -7,7 +7,7 @@
|
||||
; The name of the installer
|
||||
Name "GPXSee"
|
||||
; Program version
|
||||
!define VERSION "8.2"
|
||||
!define VERSION "8.3"
|
||||
|
||||
; The file to write
|
||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||
|
@ -864,6 +864,8 @@ void GUI::loadData(const Data &data)
|
||||
|
||||
for (int i = 0; i < paths.count(); i++) {
|
||||
PathItem *pi = paths.at(i);
|
||||
if (!pi)
|
||||
continue;
|
||||
|
||||
for (int j = 0; j < graphs.count(); j++)
|
||||
pi->addGraph(graphs.at(j).at(i));
|
||||
|
@ -23,7 +23,7 @@ static bool readFloat(const char *data, int len, qreal &f)
|
||||
{
|
||||
bool ok;
|
||||
|
||||
f = QString(QByteArray::fromRawData(data, len)).toFloat(&ok);
|
||||
f = QByteArray::fromRawData(data, len).toFloat(&ok);
|
||||
|
||||
return ok;
|
||||
}
|
||||
@ -144,7 +144,7 @@ bool NMEAParser::readLat(const char *data, int len, qreal &lat)
|
||||
|
||||
d = Util::str2int(data, 2);
|
||||
mi = Util::str2int(data + 2, 2);
|
||||
mf = QString(QByteArray::fromRawData(data + 4, len - 4)).toFloat(&ok);
|
||||
mf = QByteArray::fromRawData(data + 4, len - 4).toFloat(&ok);
|
||||
if (d < 0 || mi < 0 || !ok)
|
||||
goto error;
|
||||
|
||||
@ -194,7 +194,7 @@ bool NMEAParser::readLon(const char *data, int len, qreal &lon)
|
||||
|
||||
d = Util::str2int(data, 3);
|
||||
mi = Util::str2int(data + 3, 2);
|
||||
mf = QString(QByteArray::fromRawData(data + 5, len - 5)).toFloat(&ok);
|
||||
mf = QByteArray::fromRawData(data + 5, len - 5).toFloat(&ok);
|
||||
if (d < 0 || mi < 0 || !ok)
|
||||
goto error;
|
||||
|
||||
|
Reference in New Issue
Block a user