Browse Source

#1712 prune only if direct parent of transition is source state (#1722)

Andreas Mülder 7 years ago
parent
commit
be310834e5

+ 1 - 1
plugins/org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/providers/StatechartValidationDecorationProvider.java

@@ -198,7 +198,7 @@ public class StatechartValidationDecorationProvider extends AbstractDecoratorPro
 					TreeIterator<EObject> eAllContents = element.eAllContents();
 					while (eAllContents.hasNext()) {
 						EObject next = eAllContents.next();
-						if(next instanceof Transition) {
+						if(next instanceof Transition && next.eContainer() == element) {
 							eAllContents.prune();
 							continue;
 						}