treat hierarchy same as rect

This commit is contained in:
Alexander Wang 2024-03-15 14:55:18 -07:00
parent 55b8bc89ab
commit 823f6dc82f
No known key found for this signature in database
GPG key ID: BE3937D0D52D8927

View file

@ -470,7 +470,7 @@ func (obj *Object) GetFill() string {
return color.N7 return color.N7
} }
if shape == "" || strings.EqualFold(shape, d2target.ShapeSquare) || strings.EqualFold(shape, d2target.ShapeCircle) || strings.EqualFold(shape, d2target.ShapeOval) || strings.EqualFold(shape, d2target.ShapeRectangle) { if shape == "" || strings.EqualFold(shape, d2target.ShapeSquare) || strings.EqualFold(shape, d2target.ShapeCircle) || strings.EqualFold(shape, d2target.ShapeOval) || strings.EqualFold(shape, d2target.ShapeRectangle) || strings.EqualFold(shape, d2target.ShapeHierarchy) {
if level == 1 { if level == 1 {
if !obj.IsContainer() { if !obj.IsContainer() {
return color.B6 return color.B6