#934 exiv2json.cpp threw an exception on toLong() and I changed it to std::atoi.
The value is '' (the empty string). The following key seems to be somehow and puzzlingly broken: 0x8827 Photo ISOSpeedRatings Short 0
This commit is contained in:
parent
95fe94ec73
commit
bd4004e963
@ -160,7 +160,7 @@ void push(Jzon::Node& node,const std::string& key,T i)
|
||||
case Exiv2::signedByte:
|
||||
case Exiv2::signedShort:
|
||||
case Exiv2::signedLong:
|
||||
STORE(node,key,(int)i->value().toLong());
|
||||
STORE(node,key,std::atoi(value.c_str()) );
|
||||
break;
|
||||
|
||||
case Exiv2::tiffFloat:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user