Skip to content

Commit

Permalink
graphics/qgis-ltr: make compatible with exiv2 0.28
Browse files Browse the repository at this point in the history
PR:		272311
  • Loading branch information
mandree committed Jul 9, 2023
1 parent 8b78f1c commit 8870a64
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions graphics/qgis-ltr/Makefile
@@ -1,5 +1,6 @@
PORTNAME= qgis
DISTVERSION= 3.28.8
PORTREVISION= 1
CATEGORIES= graphics geography
MASTER_SITES= https://qgis.org/downloads/
PKGNAMESUFFIX= -ltr
Expand Down
20 changes: 20 additions & 0 deletions graphics/qgis-ltr/files/patch-src_core_raster_qgsexiftools.cpp
@@ -0,0 +1,20 @@
--- src/core/raster/qgsexiftools.cpp.orig 2023-05-26 12:01:31 UTC
+++ src/core/raster/qgsexiftools.cpp
@@ -94,7 +94,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:
@@ -108,7 +108,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:

0 comments on commit 8870a64

Please sign in to comment.