diff --git a/src/tiffcomposite.cpp b/src/tiffcomposite.cpp index c26a8b33..9dceb576 100644 --- a/src/tiffcomposite.cpp +++ b/src/tiffcomposite.cpp @@ -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; }