diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-15 13:30:35 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-15 13:30:35 -0400 |
| commit | 0e32aff30b87b7dc355c825949e6096ca90e7165 (patch) | |
| tree | b938553e097b6b5d084ecd2df2fa78bb8f1588de /newctrl/group_windows.go | |
| parent | 6b2dac42002cc09972106d75093e504fe33e7a9f (diff) | |
Fixed compiler errors.
Diffstat (limited to 'newctrl/group_windows.go')
| -rw-r--r-- | newctrl/group_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newctrl/group_windows.go b/newctrl/group_windows.go index 98569d6..9a025c5 100644 --- a/newctrl/group_windows.go +++ b/newctrl/group_windows.go @@ -17,7 +17,7 @@ func newGroup(text string, control Control) Group { C.WS_EX_CONTROLPARENT) g := &group{ controlSingleHWNDWithText: newControlSingleHWNDWithText(hwnd), - child: control + child: control, } g.fpreferredSize = g.preferredSize g.fresize = g.resize @@ -46,7 +46,7 @@ func (g *group) preferredSize(d *sizing) (width, height int) { width, height = g.child.preferredSize(d) if width < int(g.textlen) { // if the text is longer, try not to truncate - width = int(g._textlen) + width = int(g.textlen) } r.left = 0 r.top = 0 |
