From 01d30ed9cc4c080dea45ee85ec7af76cbd7e61bb Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 16 Nov 2023 13:21:17 +0100 Subject: FLUID: inlined data can be stored compressed. --- fluid/code.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fluid/code.cxx') 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; -- cgit v1.2.3