From: Jussi Koskela Date: Tue, 9 Mar 2021 08:21:43 +0000 (+0200) Subject: Synchronize G2DSceneGraph.isPending X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=4771663b6e8a67f0cdfee6438ee3eeb7c296550b;p=simantics%2Fplatform.git Synchronize G2DSceneGraph.isPending (cherry picked from commit a64df030259c8cd9a63a940801c5a43deb650323) --- 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 a013dc041..df28d317f 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 } } - public boolean isPending() { + synchronized public boolean isPending() { return !pending.isEmpty(); }