Workaround for missing selection highlights on SVG diagrams 17/1117/1
authorMarko Luukkainen <marko.luukkainen@vtt.fi>
Tue, 17 Oct 2017 13:59:35 +0000 (16:59 +0300)
committerMarko Luukkainen <marko.luukkainen@vtt.fi>
Tue, 17 Oct 2017 13:59:35 +0000 (16:59 +0300)
refs #7555

Change-Id: I6ebd46e449f0cd165b9c2b49a95ddb9a62d63d15

bundles/org.simantics.modeling/src/org/simantics/modeling/SCLScenegraph.java

index 2591dc7d85dfd79ffa05dd208667d1b9caf5aa65..d2ad3e9c7a3e91ebf496eae023704f2994a5929e 100644 (file)
@@ -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<g style=\"visibility:hidden\" class=\"selection\" id=\"" + key + "\">");
                     parentBuilder2.append(SELECTION_SECTION, svg);
@@ -797,6 +799,7 @@ public class SCLScenegraph {
                            parentBuilder2.append(SELECTION_MASK_SECTION,"></rect>");
                     }
                     parentBuilder2.append(SELECTION_MASK_SECTION,"\n</g>");
+                   
                 }
             } else if (node instanceof SVGNode) {
                 SVGNode svg = (SVGNode)node;