aboutsummaryrefslogtreecommitdiff
path: root/graphics/digikam/files/patch-core_libs_metadataengine_engine_metaengine__item.cpp
blob: b28099023389531418da7971840d35d0d04a0ad6 (plain) (blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
--- core/libs/metadataengine/engine/metaengine_item.cpp.orig	2023-03-12 13:19:02 UTC
+++ core/libs/metadataengine/engine/metaengine_item.cpp
@@ -127,7 +127,7 @@ QSize MetaEngine::getItemDimensions() const
 
         if ((it != exifData.end()) && it->count())
         {
-            width = it->toLong();
+            width = it->toInt64();
         }
 
         Exiv2::ExifKey key2("Exif.Photo.PixelYDimension");
@@ -135,7 +135,7 @@ QSize MetaEngine::getItemDimensions() const
 
         if ((it2 != exifData.end()) && it2->count())
         {
-            height = it2->toLong();
+            height = it2->toInt64();
         }
 
         if ((width != -1) && (height != -1))
@@ -153,7 +153,7 @@ QSize MetaEngine::getItemDimensions() const
 
         if ((it3 != exifData.end()) && it3->count())
         {
-            width = it3->toLong();
+            width = it3->toInt64();
         }
 
         Exiv2::ExifKey key4("Exif.Image.ImageLength");
@@ -161,7 +161,7 @@ QSize MetaEngine::getItemDimensions() const
 
         if ((it4 != exifData.end()) && it4->count())
         {
-            height = it4->toLong();
+            height = it4->toInt64();
         }
 
         if ((width != -1) && (height != -1))
@@ -320,7 +320,7 @@ MetaEngine::ImageOrientation MetaEngine::getItemOrient
 
         if ((it != exifData.end()) && it->count())
         {
-            orientation = it->toLong();
+            orientation = it->toInt64();
 
             //qCDebug(DIGIKAM_METAENGINE_LOG) << "Orientation => Exif.MinoltaCs7D.Rotation =>" << (int)orientation;
 
@@ -347,7 +347,7 @@ MetaEngine::ImageOrientation MetaEngine::getItemOrient
 
         if ((it != exifData.end()) && it->count())
         {
-            orientation = it->toLong();
+            orientation = it->toInt64();
 
             //qCDebug(DIGIKAM_METAENGINE_LOG) << "Orientation => Exif.MinoltaCs5D.Rotation =>" << (int)orientation;
 
@@ -376,7 +376,7 @@ MetaEngine::ImageOrientation MetaEngine::getItemOrient
 
         if ((it != exifData.end()) && it->count())
         {
-            orientation = it->toLong();
+            orientation = it->toInt64();
 
             //qCDebug(DIGIKAM_METAENGINE_LOG) << "Orientation => Exif.Image.Orientation =>" << (int)orientation;