summaryrefslogtreecommitdiff
path: root/box.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-08 07:36:53 -0500
committerJeff Carr <[email protected]>2021-10-08 07:36:53 -0500
commit44cd73f8e70beb436862aa0134a7c044f8e2ec7b (patch)
treec1ae8e11430875a747b138928f3ca7806669fe41 /box.go
parent0c9547a066386f82f8e724c0f61c4d31dc5351e2 (diff)
NODE: going down a rabbit hole
Diffstat (limited to 'box.go')
-rw-r--r--box.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/box.go b/box.go
index 237788a..fffb463 100644
--- a/box.go
+++ b/box.go
@@ -93,6 +93,10 @@ func NewBox(box *GuiBox, axis int, name string) *GuiBox {
func HardBox(gw *GuiWindow, axis int, name string) *GuiBox {
log.Println("HardBox() START axis =", axis)
+ if (gw.node == nil) {
+ gw.Dump()
+ panic("gui.HardBox() gw.node == nil")
+ }
// add a Vertical Seperator if there is already a box
// Is this right?
box := gw.BoxMap["MAINBOX"]