Merge pull request #1350 from alixander/square-shape-type

fix square shape type
This commit is contained in:
Alexander Wang 2023-05-28 11:17:59 -07:00 committed by GitHub
commit 962f3445f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -863,6 +863,8 @@ func init() {
for k, v := range DSL_SHAPE_TO_SHAPE_TYPE {
SHAPE_TYPE_TO_DSL_SHAPE[v] = k
}
// SQUARE_TYPE is defined twice in the map, make sure it doesn't get set to the empty string one
SHAPE_TYPE_TO_DSL_SHAPE[shape.SQUARE_TYPE] = ShapeRectangle
}
func GetIconSize(box *geo.Box, position string) int {