Enable the insertion of non-existent graphics files once again.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3841 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-03-26 15:20:01 +00:00
parent b095c6ed7a
commit 70cec1dd6e
2 changed files with 9 additions and 6 deletions

View 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.

View 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,