From 70cec1dd6e6dc6886ecfcf40ac125596c72760ba Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 26 Mar 2002 15:20:01 +0000 Subject: [PATCH] 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 --- src/frontends/xforms/ChangeLog | 3 +++ src/frontends/xforms/FormGraphics.C | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 77d1da1d05..87a75d1fa8 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -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 * FormParagraph.C (changedParagraph): whitespace. diff --git a/src/frontends/xforms/FormGraphics.C b/src/frontends/xforms/FormGraphics.C index 7c056de5d2..cee1b1ed63 100644 --- a/src/frontends/xforms/FormGraphics.C +++ b/src/frontends/xforms/FormGraphics.C @@ -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, -- 2.39.2