Skip to content

Commit

Permalink
fix(cli) apply tmplt height/size
Browse files Browse the repository at this point in the history
  • Loading branch information
helderbetiol committed Feb 19, 2024
1 parent 71bf8c7 commit 8374340
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CLI/controllers/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,9 @@ func (controller Controller) ApplyTemplate(attr, data map[string]interface{}, en
xS = attrSerialiser(sizeInf[0], "x", ent)
yS = attrSerialiser(sizeInf[1], "y", ent)
zS = attrSerialiser(sizeInf[2], "height", ent)

attr["size"] = "[" + xS + ", " + yS + "]"
attr["height"] = zS
CopyAttr(attr, tmpl, "shape")
if ent == models.GENERIC {
attr["size"] = "[" + xS + ", " + yS + "]"
attr["height"] = zS
}

if ent == models.DEVICE {
attr["sizeUnit"] = "mm"
Expand Down

0 comments on commit 8374340

Please sign in to comment.