]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
ElementUtils.setHidden does not hide element
authorAntti Villberg <antti.villberg@semantum.fi>
Fri, 18 Sep 2020 06:23:32 +0000 (09:23 +0300)
committerAntti Villberg <antti.villberg@semantum.fi>
Fri, 18 Sep 2020 06:23:32 +0000 (09:23 +0300)
gitlab #604

Change-Id: I7aeac94bb0e6d9841b19ea28c2f98386aeeb2f54

bundles/org.simantics.diagram/src/org/simantics/diagram/elements/MonitorClass.java

index 4e64751dfcf00f12b65cced52423fdf2de30df43..60f11220eecdfccdb27baa79e017306fa4e75fdc 100644 (file)
@@ -602,6 +602,12 @@ public class MonitorClass {
             TextNode node = (TextNode)e.removeHint(KEY_SG_NODE);
             if (node != null)
                 node.remove();
+            TextNode prefixNode = (TextNode) e.getHint(KEY_SG_PREFIX_NODE);
+            if (prefixNode != null)
+                prefixNode.remove();
+            TextNode suffixNode = (TextNode) e.getHint(KEY_SG_SUFFIX_NODE);
+            if (suffixNode != null)
+                suffixNode.remove();
         }
 
         @Override