summaryrefslogtreecommitdiff
path: root/entry.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-05 10:23:27 -0500
committerJeff Carr <[email protected]>2021-10-05 10:23:27 -0500
commit7ba7b97fa9d385e18c1f9636553db254f14383d0 (patch)
tree973da9d78f143ffd9e7faab06fa9b67499f4fe0f /entry.go
parent11815517c6e566e47d3da61c4b852dd791dbd799 (diff)
BUG: fix potential 'nil' reference
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'entry.go')
-rw-r--r--entry.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/entry.go b/entry.go
index db5013a..d7f31c9 100644
--- a/entry.go
+++ b/entry.go
@@ -10,7 +10,7 @@ import "github.com/davecgh/go-spew/spew"
// functions for handling text entry boxes
func NewLabel(box *GuiBox, text string) {
- box.UiBox.Append(ui.NewLabel(text), false)
+ box.Append(ui.NewLabel(text), false)
}
func GetText(box *GuiBox, name string) string {