#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:
Robin Mills 2015-04-28 11:12:58 +00:00
parent 95fe94ec73
commit bd4004e963

View File

@ -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: