Removed a leftover crash guard from the Mac OS X sysData code (in this case sysData.preferredSize()).
This commit is contained in:
parent
4923f3944c
commit
54a63eb712
|
@ -37,6 +37,5 @@ var prefsizefuncs = [nctypes]func(C.id) (int, int){
|
|||
}
|
||||
|
||||
func (s *sysData) preferredSize() (width int, height int) {
|
||||
if classTypes[s.ctype].make == nil { return 0, 0 } // prevent lockup during window resize
|
||||
return prefsizefuncs[s.ctype](s.id)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue