check message ref is group

This commit is contained in:
Gavin Nishizawa 2023-01-26 18:39:33 -08:00
parent 22231aa8e4
commit c4efe2812f
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -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
}