fix square shape type
This commit is contained in:
parent
69ee4a9033
commit
b3e5c71746
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue