Replace Metadatum::toLong() with Metadatum::toInt64().
This commit is contained in:
+2
-2
@@ -161,7 +161,7 @@ namespace Exiv2
|
||||
{
|
||||
auto imageWidth = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelXDimension"));
|
||||
if (imageWidth != exifData_.end() && imageWidth->count() > 0) {
|
||||
return imageWidth->toLong();
|
||||
return imageWidth->toInt64();
|
||||
}
|
||||
return pixelWidth_;
|
||||
}
|
||||
@@ -170,7 +170,7 @@ namespace Exiv2
|
||||
{
|
||||
auto imageHeight = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelYDimension"));
|
||||
if (imageHeight != exifData_.end() && imageHeight->count() > 0) {
|
||||
return imageHeight->toLong();
|
||||
return imageHeight->toInt64();
|
||||
}
|
||||
return pixelHeight_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user