Sync git svn branch with SVN repository r33406.
[simantics/platform.git] / bundles / org.simantics.scenegraph / src / org / simantics / scenegraph / utils / NodeUtil.java
index fb2f485f6b5935cc9166a59d9728fbaafd244458..727b98dbc2295eb499a7aad5fee14d5339db1f87 100644 (file)
@@ -978,9 +978,14 @@ public final class NodeUtil {
         if(node instanceof ConnectionNode) {\r
             return getLocalBounds(node);\r
         } else if(node instanceof SingleElementNode) {\r
+            // For normal symbols\r
             INode image = NodeUtil.findChildByPrefix((SingleElementNode)node, "composite_image");\r
             if (image == null)\r
+                // For generic text nodes\r
                 image = NodeUtil.findChildByPrefix((SingleElementNode) node, "text");\r
+            if (image == null)\r
+                // For I/O table diagram flags (value of org.simantics.diagram.flag.FlagSceneGraph.VISUAL_ROOT)\r
+                image = NodeUtil.findChildByPrefix((SingleElementNode) node, "visual");\r
             if (image == null)\r
                 image = NodeUtil.getNearestChildByClass((SingleElementNode) node, FlagNode.class);\r
             if (image != null)\r