From: Marko Luukkainen Date: Tue, 17 Oct 2017 13:59:35 +0000 (+0300) Subject: Workaround for missing selection highlights on SVG diagrams X-Git-Tag: v1.31.0~110^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F1117%2F1;p=simantics%2Fplatform.git Workaround for missing selection highlights on SVG diagrams refs #7555 Change-Id: I6ebd46e449f0cd165b9c2b49a95ddb9a62d63d15 --- diff --git a/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLScenegraph.java b/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLScenegraph.java index 2591dc7d8..d2ad3e9c7 100644 --- a/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLScenegraph.java +++ b/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLScenegraph.java @@ -782,7 +782,9 @@ public class SCLScenegraph { RenderSVGContext parentBuilder2 = getParentBuilder(parentSEN); String key = getKey(parentSEN); + n.setIgnore(false); Element doc = renderSVGNode((IG2DNode)node); + n.setIgnore(true); String svg = printSVGDocument(doc); parentBuilder2.append(SELECTION_SECTION, "\n"); parentBuilder2.append(SELECTION_SECTION, svg); @@ -797,6 +799,7 @@ public class SCLScenegraph { parentBuilder2.append(SELECTION_MASK_SECTION,">"); } parentBuilder2.append(SELECTION_MASK_SECTION,"\n"); + } } else if (node instanceof SVGNode) { SVGNode svg = (SVGNode)node;