From 636ddc0d966151e334b01039c94ff3dee743db99 Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Tue, 13 Apr 2021 09:24:57 +0300 Subject: [PATCH] Revert 1.43.0-CVM2 branch to initial state gitlab #691 Change-Id: If53f9c4b1dc9667cf5e8d89674b4fd59c3f74a0a --- .../src/org/simantics/diagram/svg/export/DiagramToSVG.java | 1 - .../src/org/simantics/scenegraph/g2d/G2DSceneGraph.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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 a8de56f61..9964592f9 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,7 +236,6 @@ 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); diff --git a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DSceneGraph.java b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DSceneGraph.java index df28d317f..a013dc041 100644 --- a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DSceneGraph.java +++ b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DSceneGraph.java @@ -335,7 +335,7 @@ public class G2DSceneGraph extends G2DParentNode implements ILookupService, INod } } - synchronized public boolean isPending() { + public boolean isPending() { return !pending.isEmpty(); } -- 2.47.1