diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-10-18 19:21:45 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-10-18 19:21:45 +0000 |
| commit | a6ffe9abc01d4747dae35555cc21db421cdfdf95 (patch) | |
| tree | 74b35e6e2afd51b3bcbdd3a8903592d19ada0805 /test | |
| parent | 9da85233f979b8c73f8714e094feb01e12bd0587 (diff) | |
Fix the editor demo and associated documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1638 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
| -rw-r--r-- | test/editor.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/editor.cxx b/test/editor.cxx index 8ee30b17d..13faad636 100644 --- a/test/editor.cxx +++ b/test/editor.cxx @@ -1,5 +1,5 @@ // -// "$Id: editor.cxx,v 1.2.2.3.2.2 2001/09/30 17:37:06 easysw Exp $" +// "$Id: editor.cxx,v 1.2.2.3.2.3 2001/10/18 19:21:45 easysw Exp $" // // A simple text editor program for the Fast Light Tool Kit (FLTK). // @@ -109,12 +109,12 @@ int check_save(void) { "Would you like to save it now?", "Cancel", "Save", "Discard"); - if (r == 2) { + if (r == 1) { save_cb(); // Save the file... return !changed; - }; + } - return (r == 1) ? 1 : 0; + return (r == 2) ? 1 : 0; } int loading = 0; @@ -424,5 +424,5 @@ int main(int argc, char **argv) { } // -// End of "$Id: editor.cxx,v 1.2.2.3.2.2 2001/09/30 17:37:06 easysw Exp $". +// End of "$Id: editor.cxx,v 1.2.2.3.2.3 2001/10/18 19:21:45 easysw Exp $". // |
