diff --git a/rtengine/imagedata.cc b/rtengine/imagedata.cc index 00a478059..1b6a770a0 100644 --- a/rtengine/imagedata.cc +++ b/rtengine/imagedata.cc @@ -128,9 +128,10 @@ void ImageData::extractInfo () { } make.erase( make.find_last_not_of(' ')+1 ); } + if (root->getTag ("Model")) - if( !(model.size()==0)) { model = root->getTag ("Model")->valueToString (); + if (!(model.size()==0)) { std::size_t i=0; if ( make.find("KODAK") != std::string::npos ){ if( (i = model.find(" DIGITAL CAMERA")) != std::string::npos ||