From 885bca0865e472c5178ffc296e1c4839daf9ee0d Mon Sep 17 00:00:00 2001 From: Shohei Kunimatsu Date: Mon, 1 May 2023 00:53:21 +0900 Subject: [PATCH] Fix wrong attribute name usage (ValueComponent -> UnitComponent) in IfcFile::getUnit --- src/ifcparse/IfcParse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcparse/IfcParse.cpp b/src/ifcparse/IfcParse.cpp index 54f58189fa..c1e2895b7c 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -2600,7 +2600,7 @@ std::pair 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(*vlc->data().getArgument(0));