From ec1e6bb5e052c7b5da6c72a2af83f66d9688fe5d Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Wed, 10 Mar 2021 09:42:04 +0200 Subject: [PATCH] Sleep 1 second before writing diagram SVG in hope to fix profile bug Change-Id: I6c98b014251debae0f391a08a6945491589d80da --- .../src/org/simantics/diagram/svg/export/DiagramToSVG.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.simantics.diagram.svg/src/org/simantics/diagram/svg/export/DiagramToSVG.java b/bundles/org.simantics.diagram.svg/src/org/simantics/diagram/svg/export/DiagramToSVG.java index 9964592f9..a8de56f61 100644 --- a/bundles/org.simantics.diagram.svg/src/org/simantics/diagram/svg/export/DiagramToSVG.java +++ b/bundles/org.simantics.diagram.svg/src/org/simantics/diagram/svg/export/DiagramToSVG.java @@ -236,6 +236,7 @@ public class DiagramToSVG { }); ICanvasSceneGraphProvider provider = DiagramNodeUtil.loadSceneGraphProvider(ctx, modelAndRVI.first, exportPlan.diagram, modelAndRVI.second); + Thread.sleep(1000); sgProvider.set( provider ); final Semaphore done = new Semaphore(0); -- 2.47.1