mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Fixed Qt4 build
This commit is contained in:
parent
bf845a4a65
commit
cdfd968592
@ -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"
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user