mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-04 22:59:29 +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:
|
configuration:
|
||||||
- Release
|
- Release
|
||||||
|
@ -3,7 +3,7 @@ unix:!macx {
|
|||||||
} else {
|
} else {
|
||||||
TARGET = GPXSee
|
TARGET = GPXSee
|
||||||
}
|
}
|
||||||
VERSION = 8.2
|
VERSION = 8.3
|
||||||
|
|
||||||
QT += core \
|
QT += core \
|
||||||
gui \
|
gui \
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
; The name of the installer
|
; The name of the installer
|
||||||
Name "GPXSee"
|
Name "GPXSee"
|
||||||
; Program version
|
; Program version
|
||||||
!define VERSION "8.2"
|
!define VERSION "8.3"
|
||||||
|
|
||||||
; The file to write
|
; The file to write
|
||||||
OutFile "GPXSee-${VERSION}.exe"
|
OutFile "GPXSee-${VERSION}.exe"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
; The name of the installer
|
; The name of the installer
|
||||||
Name "GPXSee"
|
Name "GPXSee"
|
||||||
; Program version
|
; Program version
|
||||||
!define VERSION "8.2"
|
!define VERSION "8.3"
|
||||||
|
|
||||||
; The file to write
|
; The file to write
|
||||||
OutFile "GPXSee-${VERSION}_x64.exe"
|
OutFile "GPXSee-${VERSION}_x64.exe"
|
||||||
|
@ -864,6 +864,8 @@ void GUI::loadData(const Data &data)
|
|||||||
|
|
||||||
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);
|
||||||
|
if (!pi)
|
||||||
|
continue;
|
||||||
|
|
||||||
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));
|
||||||
|
@ -23,7 +23,7 @@ static bool readFloat(const char *data, int len, qreal &f)
|
|||||||
{
|
{
|
||||||
bool ok;
|
bool ok;
|
||||||
|
|
||||||
f = QString(QByteArray::fromRawData(data, len)).toFloat(&ok);
|
f = QByteArray::fromRawData(data, len).toFloat(&ok);
|
||||||
|
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
@ -144,7 +144,7 @@ bool NMEAParser::readLat(const char *data, int len, qreal &lat)
|
|||||||
|
|
||||||
d = Util::str2int(data, 2);
|
d = Util::str2int(data, 2);
|
||||||
mi = Util::str2int(data + 2, 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)
|
if (d < 0 || mi < 0 || !ok)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
@ -194,7 +194,7 @@ bool NMEAParser::readLon(const char *data, int len, qreal &lon)
|
|||||||
|
|
||||||
d = Util::str2int(data, 3);
|
d = Util::str2int(data, 3);
|
||||||
mi = Util::str2int(data + 3, 2);
|
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)
|
if (d < 0 || mi < 0 || !ok)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user