fix incorrect parsing of scale transformation value
This commit is contained in:
parent
9329ca02ac
commit
c9e521c1e5
|
@ -118,12 +118,12 @@ BOOL MetadataFile::Load(const std::string &file)
|
|||
std::string name = transformation.name();
|
||||
if (name == "scale")
|
||||
{
|
||||
if (strlen(transformation.value()) == 0)
|
||||
if (strlen(transformation.child_value()) == 0)
|
||||
{
|
||||
printf("Metadata XML error: no scale factor provided\n");
|
||||
return FALSE;
|
||||
}
|
||||
m_scale = atof(transformation.value());
|
||||
m_scale = atof(transformation.child_value());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue