From 9ba04e1171c6460a2a6fbc9998227c6eb62d5155 Mon Sep 17 00:00:00 2001 From: sshutina Date: Fri, 11 Jul 2025 12:49:13 +0100 Subject: [PATCH] Add not empty shape for views Signed-off-by: sshutina --- src/Draw/TKXSDRAWDE/XSDRAWDE/XSDRAWDE.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Draw/TKXSDRAWDE/XSDRAWDE/XSDRAWDE.cxx b/src/Draw/TKXSDRAWDE/XSDRAWDE/XSDRAWDE.cxx index 87d1b24546..9ee2e454fd 100644 --- a/src/Draw/TKXSDRAWDE/XSDRAWDE/XSDRAWDE.cxx +++ b/src/Draw/TKXSDRAWDE/XSDRAWDE/XSDRAWDE.cxx @@ -13,6 +13,7 @@ #include +#include #include #include #include @@ -493,10 +494,9 @@ TDF_Label DataAsGeomExporter::CreateShapeLabelForViews() const } // Get the shape associated with the view label. - TopoDS_Compound aSubCompound; - aBuilder.MakeCompound(aSubCompound); + TopoDS_Vertex aV = BRepBuilderAPI_MakeVertex(gp_Pnt()); // Add the shape to the compound. - aBuilder.Add(aCompound, aSubCompound); + aBuilder.Add(aCompound, aV); } const TDF_Label aShapeLabel = myShapeTool->AddShape(aCompound, true, false); -- 2.39.5