|
|
|
@ -154,7 +154,7 @@ namespace Exiv2 {
|
|
|
|
|
std::ostringstream os;
|
|
|
|
|
md_st->write(os, &ed);
|
|
|
|
|
bool ok = false;
|
|
|
|
|
long st_val = parseLong(os.str(), ok);
|
|
|
|
|
const long st_val = parseLong(os.str(), ok);
|
|
|
|
|
// SensivityType out of range or cannot be parsed properly
|
|
|
|
|
if (!ok || st_val < 1 || st_val > 7)
|
|
|
|
|
break;
|
|
|
|
@ -175,7 +175,7 @@ namespace Exiv2 {
|
|
|
|
|
md = md_st;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
while (strcmp(sensKeys->keys[idx++], md_st->key().c_str()) != 0 && idx < cnt) {}
|
|
|
|
|
while (strcmp(sensKeys->keys[idx++], md_st->key().c_str()) != 0 && idx < sensKeys->count) {}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|