diff options
author | Emile <hanemile@protonmail.com> | 2019-02-05 22:58:55 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-02-05 22:58:55 +0100 |
commit | 6a576673ae6823aa0ce2c55baa6931e51343fd2c (patch) | |
tree | 62e0431d3eb74d72bd8f6f936048992497f615d6 | |
parent | e2ad8113e6e2765e0e70eadadf13bc30fa2a0e35 (diff) |
fixed a typo
-rw-r--r-- | main.go | 10 |
1 files 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 <https://www.gnu.org/licenses/>. -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") } |