summaryrefslogtreecommitdiff
path: root/fluid/Fl_Function_Type.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-10-21 15:42:05 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-10-21 15:42:05 +0000
commiteada39df34c50d3f8b95bd479cc548f1dd056e35 (patch)
treeb329bd66b84ffc63671e6211dc3e399d1ab45a55 /fluid/Fl_Function_Type.cxx
parent7657a2e4a536a9ee50a9277c2662dc49362ae341 (diff)
Added fluid patch from Bill Spitzak; this moves the callback code down
before the widgets that use them so that include files will get included properly. git-svn-id: file:///fltk/svn/fltk/trunk@29 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
-rw-r--r--fluid/Fl_Function_Type.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx
index 21bdb5b37..3576e837b 100644
--- a/fluid/Fl_Function_Type.cxx
+++ b/fluid/Fl_Function_Type.cxx
@@ -208,7 +208,7 @@ void Fl_Function_Type::write_code2() {
if (ismain()) {
if (havewidgets) write_c(" w->show(argc, argv);\n");
write_c(" return Fl::run();\n");
- } else if (havewidgets && !constructor)
+ } else if (havewidgets && !constructor && !return_type)
write_c(" return w;\n");
write_c("}\n");
indentation = 0;