From 6a576673ae6823aa0ce2c55baa6931e51343fd2c Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 5 Feb 2019 22:58:55 +0100 Subject: fixed a typo --- main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 9541a39..ce5fedc 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -package viewer +package main import ( "encoding/json" @@ -81,10 +81,10 @@ func drawBoxes(s *svg.SVG, treeindex int64) { } func drawBox(s *svg.SVG, node *structs.Node) { - if node.Boundry != (structs.BoundingBox{}) { - x := int(node.Boundry.Center.X / 2000) - y := int(node.Boundry.Center.Y / 2000) - w := int(node.Boundry.Width / 2000) + if node.Boundary != (structs.BoundingBox{}) { + x := int(node.Boundary.Center.X / 2000) + y := int(node.Boundary.Center.Y / 2000) + w := int(node.Boundary.Width / 2000) s.CenterRect(x, y, w, w, "fill:none;stroke:white") } -- cgit 1.4.1