diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-04-25 01:57:51 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-04-25 01:57:51 +0000 |
| commit | 9e3610c75f8ceeebb8e59db2c641f21082979856 (patch) | |
| tree | 4f482a4bc220c777ce509774d4737f3534ed41bf /fluid/file.cxx | |
| parent | aa102a4595e162cd0568746809cd6e18fbe20cfc (diff) | |
Bug fixes where I was getting the value from the input field instead of
the global pointer (caused random crashes.)
Now default to no file variable for catgets() mode, and declare and
initialize (as needed) a static _catalog variable when a global file
variable is not provided. The catalog name is the basename of the
fluid file (no .fl)...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1084 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/file.cxx')
| -rw-r--r-- | fluid/file.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fluid/file.cxx b/fluid/file.cxx index 3e0253d20..e66a0bad7 100644 --- a/fluid/file.cxx +++ b/fluid/file.cxx @@ -1,5 +1,5 @@ // -// "$Id: file.cxx,v 1.7.2.2 2000/04/24 18:22:50 mike Exp $" +// "$Id: file.cxx,v 1.7.2.3 2000/04/25 01:57:51 mike Exp $" // // Fluid file routines for the Fast Light Tool Kit (FLTK). // @@ -336,7 +336,7 @@ int write_file(const char *filename, int selected_only) { write_string("\ni18n_function %s", i18n_function); break; case 2 : /* POSIX catgets */ - write_string("\ni18n_file %s", i18n_file); + if (i18n_file[0]) write_string("\ni18n_file %s", i18n_file); write_string("\ni18n_set %s", i18n_set); break; } @@ -639,5 +639,5 @@ void read_fdesign() { } // -// End of "$Id: file.cxx,v 1.7.2.2 2000/04/24 18:22:50 mike Exp $". +// End of "$Id: file.cxx,v 1.7.2.3 2000/04/25 01:57:51 mike Exp $". // |
