diff options
| author | Matthias Melcher <git@matthiasm.com> | 2019-12-24 00:19:23 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2019-12-24 00:19:23 +0100 |
| commit | 0a23d7fe6e3a7b8000dcc6e7c4826e894f184079 (patch) | |
| tree | 1203c405d855abec2dfb604975042872eded5125 /fluid | |
| parent | 70179b618aaf02715c2f5fd2f4094369258cbe14 (diff) | |
Fluid needs to include text and binary files from within the .fl source directory.
Fixed including binaries and text to use the same path as the source code. This is consistent with the way the file is selected in the corresponding dialog box. Since the old behavior was false, I don't think this will break any existing projects.
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Function_Type.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index 558365325..5d002796d 100644 --- a/fluid/Fl_Function_Type.cxx +++ b/fluid/Fl_Function_Type.cxx @@ -913,7 +913,9 @@ void Fl_Data_Type::write_code1() { int nData = -1; // path should be set correctly already if (filename_ && !write_sourceview) { + goto_source_dir(); FILE *f = fl_fopen(filename_, "rb"); + leave_source_dir(); if (!f) { message = "Can't include data from file. Can't open"; } else { |
