summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FL/Fl_Grid.H1
-rw-r--r--examples/grid-simple.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/FL/Fl_Grid.H b/FL/Fl_Grid.H
index d7782ee5e..c2170ca5a 100644
--- a/FL/Fl_Grid.H
+++ b/FL/Fl_Grid.H
@@ -128,6 +128,7 @@ const Fl_Grid_Align FL_GRID_BOTTOM_RIGHT = FL_GRID_BOTTOM | FL_GRID_RIGHT;
grid->widget(b4, 2, 0);
grid->widget(b6, 2, 2);
grid->show_grid(0); // 1 to display grid helper lines
+ grid->end();
win->end();
win->resizable(grid);
win->size_range(300, 100);
diff --git a/examples/grid-simple.cxx b/examples/grid-simple.cxx
index f08a5957b..5641f840c 100644
--- a/examples/grid-simple.cxx
+++ b/examples/grid-simple.cxx
@@ -41,6 +41,7 @@ int main(int argc, char **argv) {
grid->widget(b4, 2, 0);
grid->widget(b6, 2, 2);
// grid->show_grid(1); // enable to display grid helper lines
+ grid->end();
win->end();
win->resizable(grid);
win->size_range(300, 100);