]> git.lyx.org Git - lyx.git/commitdiff
Enable the insertion of non-existent graphics files once again.
authorAngus Leeming <leeming@lyx.org>
Tue, 26 Mar 2002 15:20:01 +0000 (15:20 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 26 Mar 2002 15:20:01 +0000 (15:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3841 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormGraphics.C

index 77d1da1d056d2bc74d7df1148dd7882f7d268018..87a75d1fa8255043468cc42280c2b0d250159426 100644 (file)
@@ -2,6 +2,9 @@
 
        * FormPreferences.C (browse): don't use BrowseRelPath here you noodle!
 
+       * FormGraphics.C (input): don't disallow the input of a file that's
+       not there.
+
 2002-03-25  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * FormParagraph.C (changedParagraph): whitespace.
index 7c056de5d245ec1cea89aa1f3905814921bae585..cee1b1ed6355d9cafcfda1ddf317ab628a20b421 100644 (file)
@@ -483,13 +483,13 @@ ButtonPolicy::SMInput FormGraphics::input(FL_OBJECT * ob, long)
                if (out_name != in_name && !out_name.empty()) {
                        fl_set_input(file_->input_filename, out_name.c_str());
                }
-               if (!controller().isFilenameValid(out_name))
-                       return ButtonPolicy::SMI_INVALID;
+//             if (!controller().isFilenameValid(out_name))
+//                     return ButtonPolicy::SMI_INVALID;
 
-       } else if (ob == file_->input_filename) {
-               string name = getStringFromInput(file_->input_filename);
-               if (!controller().isFilenameValid(name))
-                       return ButtonPolicy::SMI_INVALID;
+//     } else if (ob == file_->input_filename) {
+//             string name = getStringFromInput(file_->input_filename);
+//             if (!controller().isFilenameValid(name))
+//                     return ButtonPolicy::SMI_INVALID;
 
        } else if (ob == file_->check_subcaption) {
                setEnabled(file_->input_subcaption,