mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-29 03:37:21 +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;
|
std::string object_type;
|
||||||
auto ot_arg = data.product->get("ObjectType");
|
auto ot_arg = data.product->get("ObjectType");
|
||||||
if (!ot_arg->isNull()) {
|
if (!ot_arg->isNull()) {
|
||||||
object_type = *ot_arg;
|
object_type = (std::string) *ot_arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.product->declaration().is("IfcAnnotation") && // is an Annotation
|
if (data.product->declaration().is("IfcAnnotation") && // is an Annotation
|
||||||
|
|||||||
Reference in New Issue
Block a user