From 3e285814e08a59e2de7fcbdf1fb6868468fe9116 Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Fri, 18 Sep 2020 09:23:32 +0300 Subject: [PATCH] ElementUtils.setHidden does not hide element gitlab #604 Change-Id: I7aeac94bb0e6d9841b19ea28c2f98386aeeb2f54 --- .../src/org/simantics/diagram/elements/MonitorClass.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/MonitorClass.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/MonitorClass.java index 4e64751df..60f11220e 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/MonitorClass.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/elements/MonitorClass.java @@ -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 -- 2.47.1