1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-17 16:20:48 +01:00

Compare commits

...

2 Commits

Author SHA1 Message Date
73fa197c25 Added missing fallback elevation fetch 2024-05-23 22:03:42 +02:00
4d17dd5b92 Version++ 2024-05-23 22:03:23 +02:00
4 changed files with 15 additions and 11 deletions

View File

@ -1,4 +1,4 @@
version: 13.20.{build} version: 13.21.{build}
configuration: configuration:
- Release - Release

View File

@ -3,7 +3,7 @@ unix:!macx:!android {
} else { } else {
TARGET = GPXSee TARGET = GPXSee
} }
VERSION = 13.20 VERSION = 13.21
QT += core \ QT += core \

View File

@ -37,7 +37,7 @@ Unicode true
; The name of the installer ; The name of the installer
Name "GPXSee" Name "GPXSee"
; Program version ; Program version
!define VERSION "13.20" !define VERSION "13.21"
; The file to write ; The file to write
OutFile "GPXSee-${VERSION}_x64.exe" OutFile "GPXSee-${VERSION}_x64.exe"

View File

@ -269,9 +269,11 @@ void IMGMap::draw(QPainter *painter, const QRectF &rect, Flags flags)
double IMGMap::elevation(const Coordinates &c) double IMGMap::elevation(const Coordinates &c)
{ {
MapData *d = _data.first();
if (d->hasDEM()) {
QList<MapData::Elevation> tiles; QList<MapData::Elevation> tiles;
DEM::DEMTRee tree; DEM::DEMTRee tree;
MapData *d = _data.first();
double ele = NAN; double ele = NAN;
d->elevations(RectC(Coordinates(c), Coordinates(c)), d->zooms().max(), d->elevations(RectC(Coordinates(c), Coordinates(c)), d->zooms().max(),
@ -281,6 +283,8 @@ double IMGMap::elevation(const Coordinates &c)
DEM::searchTree(tree, c, ele); DEM::searchTree(tree, c, ele);
return ele; return ele;
} else
return Map::elevation(c);
} }
Map* IMGMap::createIMG(const QString &path, const Projection &proj, bool *isDir) Map* IMGMap::createIMG(const QString &path, const Projection &proj, bool *isDir)