summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug.go b/debug.go
index b782955..189ef31 100644
--- a/debug.go
+++ b/debug.go
@@ -49,11 +49,11 @@ func (tk *guiWidget) dumpWidget(s string) {
var s1 string
var pId int
// tk.verifyRect()
- if tk.node.Parent == nil {
+ if tk.parent == nil {
log.Logf(WARN, "showWidgetPlacement() parent == nil wId=%d cuiName=%s", tk.WidgetId(), tk.cuiName)
pId = 0
} else {
- pId = tk.node.Parent.WidgetId
+ pId = tk.parent.WidgetId()
}
s1 = fmt.Sprintf("(wId,pId)=(%4d,%4d) ", tk.WidgetId(), pId)
sizeW, sizeH := tk.Size()