diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-11-16 13:21:17 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-11-16 13:21:17 +0100 |
| commit | 01d30ed9cc4c080dea45ee85ec7af76cbd7e61bb (patch) | |
| tree | 383c090f41b22e706775f98d704ed1a39d498175 /fluid/code.cxx | |
| parent | d28d03e1aca7d2e4d3b625a95912f0cebf9bac10 (diff) | |
FLUID: inlined data can be stored compressed.
Diffstat (limited to 'fluid/code.cxx')
| -rw-r--r-- | fluid/code.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fluid/code.cxx b/fluid/code.cxx index 09d1eb257..caff62607 100644 --- a/fluid/code.cxx +++ b/fluid/code.cxx @@ -886,15 +886,15 @@ int Fd_Code_Writer::write_code(const char *s, const char *t, bool to_sourceview) fprintf(header_file, "#endif\n"); Fl_Type* last_type = Fl_Type::last; - if (last_type && last_type->is_a(ID_Comment)) { + if (last_type && (last_type != Fl_Type::first) && last_type->is_a(ID_Comment)) { if (write_sourceview) { last_type->code1_start = last_type->code2_start = (int)ftell(code_file); - first_type->header1_start = first_type->header2_start = (int)ftell(header_file); + last_type->header1_start = last_type->header2_start = (int)ftell(header_file); } last_type->write_code1(*this); if (write_sourceview) { last_type->code1_end = last_type->code2_end = (int)ftell(code_file); - first_type->header1_end = first_type->header2_end = (int)ftell(header_file); + last_type->header1_end = last_type->header2_end = (int)ftell(header_file); } } int x = 0, y = 0; |
