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

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37869 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-03-07 14:36:22 +00:00
parent 2468e1ba2d
commit c0437db8e9

View File

@ -555,8 +555,14 @@ void InsetInclude::latex(otexstream & os, OutputParams const & runparams) const
// try to load it so we can write the associated latex
Buffer * tmp = loadIfNeeded();
if (!tmp)
if (!tmp) {
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;
}
if (tmp->params().baseClass() != masterBuffer->params().baseClass()) {
// FIXME UNICODE