summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--fluid/Fl_Widget_Type.cxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d283d8876..7008ad3f8 100644
--- a/Makefile
+++ b/Makefile
@@ -85,6 +85,7 @@ makeinclude: configure configh.in makeinclude.in
./configure; \
fi
touch config.h
+ chmod +x fltk-config
configure: configure.in
autoconf
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx
index da406eff9..624408049 100644
--- a/fluid/Fl_Widget_Type.cxx
+++ b/fluid/Fl_Widget_Type.cxx
@@ -1496,7 +1496,7 @@ void Fl_Widget_Type::write_static() {
if (k) {
write_c("void %s::%s(%s* o, %s v) {\n", k, cn, t, ut);
write_c(" ((%s*)(o->", k);
- for (Fl_Type* p = parent; p->is_widget(); p = p->parent)
+ for (Fl_Type* p = parent; p && p->is_widget(); p = p->parent)
write_c("parent()->");
write_c("user_data()))->%s_i(o,v);\n}\n", cn);
}