Fix bug #7343 (No warning for missing child documents)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37995 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-03-22 16:46:34 +00:00
parent 125eb6d180
commit 0af83beaa7
2 changed files with 9 additions and 1 deletions

View File

@ -511,8 +511,14 @@ int InsetInclude::latex(odocstream & os, OutputParams const & runparams) const
isLyXFilename(included_file.absFilename())) {
//if it's a LyX file and we're inputting or including,
//try to load it so we can write the associated latex
if (!loadIfNeeded(buffer()))
if (!loadIfNeeded(buffer())) {
docstring text = bformat(_("Could not load included "
"file\n`%1$s'\n"
"Please, check whether it actually exists."),
included_file.displayName());
Alert::warning(_("Missing included file"), text);
return false;
}
Buffer * tmp = theBufferList().getBuffer(included_file);

View File

@ -75,6 +75,8 @@ What's new
- Fix broken commits in VCS when message contains quotes (bug 7338).
- Issue a warning when an included file could not be loaded (bug 7343).
* DOCUMENTATION AND LOCALIZATION