Commit cb42bc94 authored by apvrille's avatar apvrille
Browse files

Update on composite component selection

parent 3c3e1674
......@@ -1387,7 +1387,14 @@ public abstract class TDiagramPanel extends JPanel implements GenericTree {
v = new Vector<TMLCPrimitiveComponent>();
v.addElement((TMLCPrimitiveComponent) tgc);
}
if (tgc instanceof TMLCCompositeComponent) {
if (v == null)
v = new Vector<TMLCPrimitiveComponent>();
v.addAll(((TMLCCompositeComponent) (tgc)).getAllPrimitiveComponents());
}
}
}
return v;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment