mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Fix wrong attribute name usage (ValueComponent -> UnitComponent) in IfcFile::getUnit
This commit is contained in:
committed by
Thomas Krijnen
parent
0f874dad51
commit
885bca0865
@@ -2600,7 +2600,7 @@ std::pair<IfcUtil::IfcBaseClass*, double> IfcFile::getUnit(const std::string& un
|
|||||||
);
|
);
|
||||||
|
|
||||||
IfcUtil::IfcBaseClass* unc = *mu->data().getArgument(
|
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));
|
return_value.second *= static_cast<double>(*vlc->data().getArgument(0));
|
||||||
|
|||||||
Reference in New Issue
Block a user