Diagram to SVG was rendering removed elements
[simantics/platform.git] / bundles / org.simantics.modeling / src / org / simantics / modeling / SCLScenegraph.java
index 09999bdd2faccee53b2b4969016756a343ccfa8c..2591dc7d85dfd79ffa05dd208667d1b9caf5aa65 100644 (file)
@@ -599,6 +599,7 @@ public class SCLScenegraph {
             }
 
                        G2DSceneGraph sg = ctx.getSceneGraph();
+                       sg.performCleanup();
                        G2DParentNode root = (G2DParentNode) sg.getRootNode();
 
                        // rtree is the actual content of the diagram