1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-20 22:04:23 +02:00

Compare commits

..

7 Commits
4.17 ... 4.18

Author SHA1 Message Date
5e74642dc8 Version++ 2018-01-06 21:53:13 +01:00
b1d1cae9dd Added support for negative altitude values.
Fixes #46
2018-01-06 21:51:07 +01:00
de2278ba04 Update gpxsee_sv.ts (#44)
New strings translated
2018-01-05 09:34:40 +01:00
e90f152432 Report correct file in error message 2018-01-05 00:06:07 +01:00
8deab1c9ca 6 + the leading A of course... 2018-01-04 17:36:22 +01:00
51e0f9a9c6 A records must only be >= 6, not 9
Fixes #42
2018-01-01 20:59:25 +01:00
e330abe180 Report the correct file on error 2017-12-23 11:10:39 +01:00
7 changed files with 21 additions and 21 deletions

View File

@ -1,4 +1,4 @@
version: 4.17.{build}
version: 4.18.{build}
configuration: Release
platform: Any CPU
environment:

View File

@ -1,5 +1,5 @@
TARGET = GPXSee
VERSION = 4.17
VERSION = 4.18
QT += core \
gui \
network

View File

@ -918,12 +918,12 @@
<message>
<location filename="../src/GUI/optionsdialog.cpp" line="40"/>
<source>Always show the map</source>
<translation type="unfinished"></translation>
<translation>Visa alltid kartan</translation>
</message>
<message>
<location filename="../src/GUI/optionsdialog.cpp" line="43"/>
<source>Show the map even when no files are loaded.</source>
<translation type="unfinished"></translation>
<translation>Visa kartan även utan inlästa filer.</translation>
</message>
<message>
<location filename="../src/GUI/optionsdialog.cpp" line="212"/>
@ -955,7 +955,7 @@
<location filename="../src/GUI/optionsdialog.cpp" line="55"/>
<location filename="../src/GUI/optionsdialog.cpp" line="460"/>
<source>General</source>
<translation type="unfinished"></translation>
<translation>Allmänt</translation>
</message>
<message>
<location filename="../src/GUI/optionsdialog.cpp" line="88"/>
@ -1014,7 +1014,7 @@
<message>
<location filename="../src/GUI/optionsdialog.cpp" line="190"/>
<source>Slider color:</source>
<translation type="unfinished"></translation>
<translation>Skjutreglagefärg:</translation>
</message>
<message>
<location filename="../src/GUI/optionsdialog.cpp" line="224"/>

View File

@ -5,7 +5,7 @@
; The name of the installer
Name "GPXSee"
; Program version
!define VERSION "4.17"
!define VERSION "4.18"
; The file to write
OutFile "GPXSee-${VERSION}.exe"

View File

@ -5,7 +5,7 @@
; The name of the installer
Name "GPXSee"
; Program version
!define VERSION "4.17"
!define VERSION "4.18"
; The file to write
OutFile "GPXSee-${VERSION}_x64.exe"

View File

@ -94,10 +94,10 @@ void App::loadDatums()
} else {
if (!Datum::loadList(df)) {
if (Datum::errorLine())
qWarning("%s: parse error on line %d: %s", qPrintable(ef),
qWarning("%s: parse error on line %d: %s", qPrintable(df),
Datum::errorLine(), qPrintable(Datum::errorString()));
else
qWarning("%s: %s", qPrintable(ef), qPrintable(
qWarning("%s: %s", qPrintable(df), qPrintable(
Datum::errorString()));
} else
ok = true;

View File

@ -47,22 +47,22 @@ static bool readLon(const char *data, qreal &lon)
static bool readAltitude(const char *data, qreal &ele)
{
int p;
int ga;
if (!(data[0] == 'A' || data[0] == 'V'))
return false;
if (data[1] == '-')
p = str2int(data + 2, 4);
else
p = str2int(data + 1, 5);
int g = str2int(data + 6, 5);
if (p < 0 || g < 0)
return false;
if (data[6] == '-') {
if ((ga = str2int(data + 7, 4)) < 0)
return false;
ga = -ga;
} else {
if ((ga = str2int(data + 6, 5)) < 0)
return false;
}
if (data[0] == 'A')
ele = (qreal)g;
ele = (qreal)ga;
else
ele = NAN;
@ -87,7 +87,7 @@ static bool readTimestamp(const char *data, QTime &time)
static bool readARecord(const char *line, qint64 len)
{
if (len < 9 || line[0] != 'A')
if (len < 7 || line[0] != 'A')
return false;
for (int i = 1; i < 7; i++)