mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
Give a better error message for missing layout include files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15238 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
411024615c
commit
698763da0f
@ -251,11 +251,15 @@ bool LyXTextClass::Read(string const & filename, bool merge)
|
||||
|
||||
case TC_INPUT: // Include file
|
||||
if (lexrc.next()) {
|
||||
string tmp = LibFileSearch("layouts",
|
||||
lexrc.getString(),
|
||||
string const inc = lexrc.getString();
|
||||
string tmp = LibFileSearch("layouts", inc,
|
||||
"layout");
|
||||
|
||||
if (Read(tmp, true)) {
|
||||
if (tmp.empty()) {
|
||||
lexrc.printError("Could not find input"
|
||||
"file: " + inc);
|
||||
error = true;
|
||||
} else if (Read(tmp, true)) {
|
||||
lexrc.printError("Error reading input"
|
||||
"file: "+tmp);
|
||||
error = true;
|
||||
|
@ -46,6 +46,8 @@ What's new
|
||||
|
||||
- Fix cursor positioning when opening the VSpace dialog (bug 2869).
|
||||
|
||||
- Give a better error message for missing layout include files
|
||||
|
||||
* Build/installation:
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user