From 0e32aff30b87b7dc355c825949e6096ca90e7165 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 15 Oct 2014 13:30:35 -0400 Subject: Fixed compiler errors. --- newctrl/group_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'newctrl/group_windows.go') 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 -- cgit v1.2.3