mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
SVG: Explicitly cast object type
This commit is contained in:
@@ -777,7 +777,7 @@ void SvgSerializer::write(const geometry_data& data) {
|
||||
std::string object_type;
|
||||
auto ot_arg = data.product->get("ObjectType");
|
||||
if (!ot_arg->isNull()) {
|
||||
object_type = *ot_arg;
|
||||
object_type = (std::string) *ot_arg;
|
||||
}
|
||||
|
||||
if (data.product->declaration().is("IfcAnnotation") && // is an Annotation
|
||||
|
||||
Reference in New Issue
Block a user