/
patch-src_core_raster_qgsexiftools.cpp
38 lines (34 loc) · 1.44 KB
/
patch-src_core_raster_qgsexiftools.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- src/core/raster/qgsexiftools.cpp.orig 2023-05-26 12:01:43 UTC
+++ src/core/raster/qgsexiftools.cpp
@@ -66,7 +66,7 @@ QVariant decodeXmpData( const QString &key, Exiv2::Xmp
case Exiv2::signedLong:
case Exiv2::unsignedLongLong:
case Exiv2::signedLongLong:
- val = QVariant::fromValue( it->toLong() );
+ val = QVariant::fromValue( it->toInt64() );
break;
case Exiv2::tiffDouble:
@@ -80,7 +80,7 @@ QVariant decodeXmpData( const QString &key, Exiv2::Xmp
case Exiv2::signedByte:
case Exiv2::tiffIfd:
case Exiv2::tiffIfd8:
- val = QVariant::fromValue( static_cast< int >( it->toLong() ) );
+ val = QVariant::fromValue( static_cast< int >( it->toInt64() ) );
break;
case Exiv2::date:
@@ -182,7 +182,7 @@ QVariant decodeExifData( const QString &key, Exiv2::Ex
case Exiv2::signedLong:
case Exiv2::unsignedLongLong:
case Exiv2::signedLongLong:
- val = QVariant::fromValue( it->toLong() );
+ val = QVariant::fromValue( it->toInt64() );
break;
case Exiv2::tiffDouble:
@@ -196,7 +196,7 @@ QVariant decodeExifData( const QString &key, Exiv2::Ex
case Exiv2::signedByte:
case Exiv2::tiffIfd:
case Exiv2::tiffIfd8:
- val = QVariant::fromValue( static_cast< int >( it->toLong() ) );
+ val = QVariant::fromValue( static_cast< int >( it->toInt64() ) );
break;
case Exiv2::date: