ISSUE #6328 fix in dispatch_token to avoid missing unknown in logicals

This commit is contained in:
Sebastian Friston
2025-03-12 15:44:14 +00:00
committed by Thomas Krijnen
parent 58a5f881e6
commit 35fe79dfb2
2 changed files with 7 additions and 4 deletions
@@ -82,9 +82,10 @@ boost::optional<std::string> format_attribute(ifcopenshell::geometry::abstract_m
}
switch(argument_type) {
case IfcUtil::Argument_BOOL: {
const bool b = argument;
value = b ? "true" : "false";
case IfcUtil::Argument_BOOL:
case IfcUtil::Argument_LOGICAL:{
const boost::logic::tribool b = argument;
value = b.value == boost::logic::tribool::indeterminate_value ? "unknown" : b ? "true" : "false";
break; }
case IfcUtil::Argument_DOUBLE: {
const double d = argument;