check message ref is group
This commit is contained in:
parent
22231aa8e4
commit
c4efe2812f
1 changed files with 3 additions and 1 deletions
|
|
@ -100,7 +100,9 @@ func (e *Edge) ContainedBy(obj *Object) bool {
|
|||
|
||||
func (e *Edge) GetGroup() *Object {
|
||||
for _, ref := range e.References {
|
||||
return ref.ScopeObj
|
||||
if ref.ScopeObj.IsSequenceDiagramGroup() {
|
||||
return ref.ScopeObj
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue