summaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
Diffstat (limited to 'node.go')
-rw-r--r--node.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/node.go b/node.go
index 1fd8470..ae1cd55 100644
--- a/node.go
+++ b/node.go
@@ -21,6 +21,8 @@ func (n *Node) newNode(title string, t widget.WidgetType) *Node {
newN.value = title
newN.WidgetType = t
+ newN.strings = make(map[string]int)
+
// set these defaults
newN.expand = true
newN.pad = true