namespace Msp {
namespace GLtk {
-Grid::Grid(Layout &l, unsigned c):
+Grid::Grid(Layout &l, size_t c):
Arrangement(l),
- columns(c),
- first_row(true),
- column(0)
+ columns(c)
{ }
void Grid::skip()
void Grid::next_row()
{
+ if(row_bottom.empty())
+ throw arrangement_error("empty row not allowed");
+
finish_row();
}