Fixed compiler errors in the past few commits.

This commit is contained in:
Pietro Gagliardi 2014-03-11 12:24:48 -04:00
parent 2e99d1319a
commit 9a9a1d21bb
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ func (g *Grid) SetFilling(row int, column int) {
panic(fmt.Errorf("Grid.SetFilling() called after window create"))
}
if row < 0 || column < 0 || row > len(g,filling) || column > len(g.filling[row]) {
panic(fmt.Errorf("coordinate (%d,%d) out of range passed to Grid.SetFilling()", row, column)
panic(fmt.Errorf("coordinate (%d,%d) out of range passed to Grid.SetFilling()", row, column))
}
g.filling[row][column] = true
}
@ -95,7 +95,7 @@ func (g *Grid) SetStretchy(row int, column int) {
panic(fmt.Errorf("Grid.SetFilling() called after window create"))
}
if row < 0 || column < 0 || row > len(g,filling) || column > len(g.filling[row]) {
panic(fmt.Errorf("coordinate (%d,%d) out of range passed to Grid.SetStretchy()", row, column)
panic(fmt.Errorf("coordinate (%d,%d) out of range passed to Grid.SetStretchy()", row, column))
}
g.stretchyrow = row
g.stretchycol = column