1
0
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:
Martin Tůma 2019-03-13 08:42:18 +01:00
parent bf845a4a65
commit cdfd968592
3 changed files with 3 additions and 2 deletions

View File

@ -14,8 +14,8 @@
#include "slfparser.h" #include "slfparser.h"
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include "geojsonparser.h" #include "geojsonparser.h"
#include "exifparser.h"
#endif // QT 5 #endif // QT 5
#include "exifparser.h"
#include "dem.h" #include "dem.h"
#include "data.h" #include "data.h"

View File

@ -127,7 +127,7 @@ bool EXIFParser::parseTIFF(QDataStream &stream, QVector<Waypoint> &waypoints)
gpsTags.insert(GPSAltitude); gpsTags.insert(GPSAltitude);
gpsTags.insert(GPSAltitudeRef); gpsTags.insert(GPSAltitudeRef);
QMap<quint16, IFDEntry> gpsEntries; QMap<quint16, IFDEntry> gpsEntries;
for (quint32 ifd = exifEntries.first().offset; ifd; ) { for (quint32 ifd = exifEntries.value(GPSIFDTag).offset; ifd; ) {
if (!readIFD(tiff, offset + ifd, gpsTags, gpsEntries) if (!readIFD(tiff, offset + ifd, gpsTags, gpsEntries)
|| !tiff.readValue(ifd)) { || !tiff.readValue(ifd)) {
_errorString = "Invalid GPS IFD"; _errorString = "Invalid GPS IFD";

View File

@ -1,3 +1,4 @@
#include <QFile>
#include "common/tifffile.h" #include "common/tifffile.h"
#include "pcs.h" #include "pcs.h"
#include "geotiff.h" #include "geotiff.h"