summaryrefslogtreecommitdiff
path: root/fluid/code.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-09-26 00:29:14 +0200
committerMatthias Melcher <github@matthiasm.com>2023-09-26 00:29:26 +0200
commit0a2f05a2fe2898ee1407319a6764018fdf54e562 (patch)
treec71eb3a9c9bbab15b38730bde6b0f4a429e62c02 /fluid/code.cxx
parentb8fa522ca42407515f28dcdba4caddefe211ca27 (diff)
FLUID: Fixes regression #777
Wrote wrong path in #inlude statement under certain conditions. Also removed 'snap' tag if not needed.
Diffstat (limited to 'fluid/code.cxx')
-rw-r--r--fluid/code.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/fluid/code.cxx b/fluid/code.cxx
index 561d6fca7..1a66895a6 100644
--- a/fluid/code.cxx
+++ b/fluid/code.cxx
@@ -771,7 +771,7 @@ int Fd_Code_Writer::write_code(const char *s, const char *t, bool to_sourceview)
} else if (g_project.header_file_name[0] == '.' && strchr(g_project.header_file_name.c_str(), '/') == NULL) {
write_c("#include \"%s\"\n", fl_filename_name(t));
} else {
- write_c("#include \"%s\"\n", t);
+ write_c("#include \"%s\"\n", g_project.header_file_name.c_str());
}
}
Fl_String loc_include, loc_conditional;