fix square shape type

This commit is contained in:
Alexander Wang 2023-05-28 11:14:31 -07:00
parent 69ee4a9033
commit b3e5c71746
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -863,6 +863,8 @@ func init() {
for k, v := range DSL_SHAPE_TO_SHAPE_TYPE { for k, v := range DSL_SHAPE_TO_SHAPE_TYPE {
SHAPE_TYPE_TO_DSL_SHAPE[v] = k 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 { func GetIconSize(box *geo.Box, position string) int {