From 1767b09bbc66a52c4767e76b31c3f485db187750 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));