#1114 Fix submitted.

v0.27.3
Robin Mills 10 years ago
parent 5e3effe332
commit 7b84f8bbce

@ -698,7 +698,15 @@ namespace Action {
done = true;
}
}
if (!done) std::cout << std::dec << md.value();
if (!done) {
// #1114 - show negative values for SByte
if (md.typeId() != Exiv2::signedByte){
std::cout << std::dec << md.value();
} else {
int value = md.value().toLong();
std::cout << std::dec << (value<128?value:value-255);
}
}
}
if (Params::instance().printItems_ & Params::prTrans) {
if (!first) std::cout << " ";

@ -405,6 +405,14 @@ source ./functions.source
copyTestFile $filename
runTest exiv2 -M 'del Xmp.dc.title' $filename
cat $filename
echo ''
num=1114
filename=exiv2-bug$num.jpg
printf "$num " >&3
echo '------>' Bug $num '<-------' >&2
copyTestFile $filename
runTest exiv2 -pv -g TuneAdj $filename
) 3>&1 > $results 2>&1

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Loading…
Cancel
Save