summaryrefslogtreecommitdiff
path: root/fluid/code.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/code.cxx')
-rw-r--r--fluid/code.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/fluid/code.cxx b/fluid/code.cxx
index 7c3848e77..32162003d 100644
--- a/fluid/code.cxx
+++ b/fluid/code.cxx
@@ -330,6 +330,7 @@ static Fl_Type* write_code(Fl_Type* p) {
}
extern const char* header_file_name;
+extern Fl_Class_Type *current_class;
int write_code(const char *s, const char *t) {
const char *filemode = "w";
@@ -338,6 +339,8 @@ int write_code(const char *s, const char *t) {
write_number++;
delete id_root; id_root = 0;
indentation = 0;
+ current_class = 0L;
+ current_widget_class = 0L;
if (!s) code_file = stdout;
else {
FILE *f = fopen(s, filemode);