Fix wrong focal length for Pentax 645Z and Pentax K100D Super, as reported in #3654

This commit is contained in:
heckflosse
2017-04-16 23:04:32 +02:00
parent 2c9c3b2a7f
commit 34be802c92

View File

@@ -977,7 +977,7 @@ Tag::Tag (TagDirectory* p, FILE* f, int base)
// There are 2 format pentaxLensDataAttribs
int offsetFirst = 4; // LensInfo2
if( strstr(model, "*ist") || strstr(model, "GX-1") || strstr(model, "K100D") || strstr(model, "K110D") ) {
if( strstr(model, "*ist") || strstr(model, "GX-1") || (strstr(model, "K100D") && !strstr(model, "K100D Super")) || strstr(model, "K110D") || strstr(model, "645Z")) {
offsetFirst = 3; // LensInfo
} else if( strstr(model, "645D") ) {
offsetFirst = 13; // LensInfo3