diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-21 13:02:33 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-21 13:02:33 -0400 |
| commit | 0be1bf5caa70e916ba0eedd064926394b0c53768 (patch) | |
| tree | aebe506e0a33a9ac444a642b0572fc08759a3bd9 | |
| parent | 3a16648b83748c2b771cbd17b6b120318aeede20 (diff) | |
Fixed crashing bug in tab_windows.go.
| -rw-r--r-- | redo/tab_windows.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/redo/tab_windows.go b/redo/tab_windows.go index 371d7bc..5aabd8d 100644 --- a/redo/tab_windows.go +++ b/redo/tab_windows.go @@ -58,6 +58,9 @@ func tabChanged(data unsafe.Pointer, new C.LRESULT) { //export tabTabHasChildren func tabTabHasChildren(data unsafe.Pointer, which C.LRESULT) C.BOOL { t := (*tab)(data) + if len(t.tabs) == 0 { // currently no tabs + return C.FALSE + } if t.tabs[int(which)].nchildren > 0 { return C.TRUE } |
