mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Improve a layout LYXERR0 message
The name of the layout is now included in an error message about
layouts. This will help with finding the root issue of several
documents we have.
(cherry picked from commit c949268da7
)
This commit is contained in:
parent
93003eee16
commit
b3a6f51f30
@ -1189,8 +1189,9 @@ void latexParagraphs(Buffer const & buf,
|
||||
if (layout.intitle) {
|
||||
if (already_title) {
|
||||
LYXERR0("Error in latexParagraphs: You"
|
||||
" should not mix title layouts"
|
||||
" with normal ones.");
|
||||
" are using a layout (\"" << layout.name() << "\")"
|
||||
" intended for the title, after using"
|
||||
" non-title layouts.");
|
||||
} else if (!was_title) {
|
||||
was_title = true;
|
||||
if (tclass.titletype() == TITLE_ENVIRONMENT) {
|
||||
|
Loading…
Reference in New Issue
Block a user