From: Jussi Koskela Date: Wed, 10 Mar 2021 07:42:04 +0000 (+0200) Subject: Sleep 1 second before writing diagram SVG in hope to fix profile bug X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F73%2F4673%2F1;p=simantics%2Fplatform.git Sleep 1 second before writing diagram SVG in hope to fix profile bug Change-Id: I6c98b014251debae0f391a08a6945491589d80da --- 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);