#1062 Exif.NikonWt.Timezone translated value contains cruft.

v0.27.3
Robin Mills 10 years ago
parent a8c335ba39
commit 627e06e14d

@ -2599,8 +2599,8 @@ fmountlens[] = {
std::ostringstream oss;
oss.copyfmt(os);
char sign = value.toLong() < 0 ? '-' : '+';
long h = long(std::abs( (int) (value.toFloat()/60.0) ));
long min = long(std::abs( (int) (value.toFloat()-h*60) ));
long h = long(std::abs( (int) (value.toFloat()/60.0) ))%24;
long min = long(std::abs( (int) (value.toFloat()-h*60) ))%60;
os << std::fixed << "UTC " << sign << std::setw(2) << std::setfill('0') << h << ":"
<< std::setw(2) << std::setfill('0') << min;
os.copyfmt(oss);

@ -363,6 +363,13 @@ source ./functions.source
runTest exiv2 -M'set Xmp.dc.title' $filename
runTest exiv2 -px $filename
num=1062
filename=exiv2-bug$num.jpg
printf "$num " >&3
echo '------>' Bug $num '<-------' >&2
copyTestFile $filename
runTest exiv2 -pa -g zone $filename
) 3>&1 > $results 2>&1
printf "\n"

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Loading…
Cancel
Save