Fixes Issue 1826, names of non Canon-lenses on Canon-Cams are not correctly shown

This commit is contained in:
Ingo
2013-04-17 23:39:44 +02:00
parent 3d4bd4955d
commit 6bcf4f142d
3 changed files with 6 additions and 2 deletions

View File

@@ -1926,6 +1926,9 @@ bool extractLensInfo(std::string &fullname,double &minFocal, double &maxFocal, d
char *sp=pMM;
while( *sp != ' ' && sp > buffer )sp--;
sscanf(sp+1,"%lf-%lf",&minFocal,&maxFocal);
if(maxFocal==0.) {
maxFocal = minFocal;
}
return true;
}
}