Merge pull request #1870 from alixander/hierarchy-fill

treat hierarchy same as rect
This commit is contained in:
Alexander Wang 2024-03-15 14:59:51 -07:00 committed by GitHub
commit fcb0678abb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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