Fix: http://dev.exiv2.org/boards/3/topics/1337 extended to handle Exif.Pentax.Temperature. Thanks Norbert finding this.

v0.27.3
Robin Mills 13 years ago
parent 3b71437d90
commit e29c2047b6

@ -1846,10 +1846,12 @@ namespace Exiv2 {
if (tag == 0x9286 && group == exifId && ti == undefined) {
ti = comment;
}
// http://dev.exiv2.org/boards/3/topics/1337
// Exif.NikonAFT.AFFineTuneAdj should be signedByte
if ( tag == 0x0002 && group == nikonAFTId && ti == unsignedByte ) {
ti = signedByte;
// http://dev.exiv2.org/boards/3/topics/1337 change unsignedByte to signedByte
// Exif.NikonAFT.AFFineTuneAdj || Exif.Pentax.Temperature
if ( ti == Exiv2::unsignedByte ) {
if ( (tag == 0x0002 && group == nikonAFTId ) || (tag == 0x0047 && group == pentaxId) ) {
ti = Exiv2::signedByte;
}
}
return ti;
}

Loading…
Cancel
Save