From 0af83beaa7c330488d3c98ef13b063c45bcef15a Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 22 Mar 2011 16:46:34 +0000 Subject: [PATCH] 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 --- src/insets/InsetInclude.cpp | 8 +++++++- status.16x | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index a387a4f994..68cf1d24d0 100644 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -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); diff --git a/status.16x b/status.16x index 36970b8d17..94e953f276 100644 --- a/status.16x +++ b/status.16x @@ -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