summaryrefslogtreecommitdiff
path: root/newctrl/group_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-15 13:30:35 -0400
committerPietro Gagliardi <[email protected]>2014-10-15 13:30:35 -0400
commit0e32aff30b87b7dc355c825949e6096ca90e7165 (patch)
treeb938553e097b6b5d084ecd2df2fa78bb8f1588de /newctrl/group_windows.go
parent6b2dac42002cc09972106d75093e504fe33e7a9f (diff)
Fixed compiler errors.
Diffstat (limited to 'newctrl/group_windows.go')
-rw-r--r--newctrl/group_windows.go4
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