summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/forms_compatibility.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/forms_compatibility.cxx b/src/forms_compatibility.cxx
index 2d9ca858f..c4901fedc 100644
--- a/src/forms_compatibility.cxx
+++ b/src/forms_compatibility.cxx
@@ -27,7 +27,7 @@ void fl_end_form() {
void Fl_Group::forms_end() {
// set the dimensions of a group to surround contents
- const int nc = g->children();
+ const int nc = children();
if (nc && !w()) {
Fl_Widget*const* a = array();
Fl_Widget* o = *a++;