mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
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:
parent
2468e1ba2d
commit
c0437db8e9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user