Fix several segfaults
This commit is contained in:
@@ -164,7 +164,11 @@ func (this *Backend) newWindow (
|
||||
}
|
||||
|
||||
func (this *window) SetRoot (root tomo.Object) {
|
||||
this.hierarchy.SetRoot(root.GetBox())
|
||||
if root == nil {
|
||||
this.hierarchy.SetRoot(nil)
|
||||
} else {
|
||||
this.hierarchy.SetRoot(root.GetBox())
|
||||
}
|
||||
}
|
||||
|
||||
func (this *window) SetTitle (title string) {
|
||||
|
||||
Reference in New Issue
Block a user