Fix wrong attribute name usage (ValueComponent -> UnitComponent) in IfcFile::getUnit

This commit is contained in:
Shohei Kunimatsu
2023-05-01 00:53:21 +09:00
committed by Thomas Krijnen
parent 0f874dad51
commit 885bca0865
+1 -1
View File
@@ -2600,7 +2600,7 @@ std::pair<IfcUtil::IfcBaseClass*, double> IfcFile::getUnit(const std::string& un
);
IfcUtil::IfcBaseClass* unc = *mu->data().getArgument(
mu->declaration().as_entity()->attribute_index("ValueComponent")
mu->declaration().as_entity()->attribute_index("UnitComponent")
);
return_value.second *= static_cast<double>(*vlc->data().getArgument(0));