mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 19:14:51 +00:00
Fix bug with language changes in nested environment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5503 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d1e1493c76
commit
605b8159d5
@ -1,3 +1,8 @@
|
|||||||
|
2002-10-24 Dekel Tsur <dekelts@tau.ac.il>
|
||||||
|
|
||||||
|
* paragraph.C (TeXOnePar): Fix bug with language changes in nested
|
||||||
|
environment.
|
||||||
|
|
||||||
2002-10-24 Angus Leeming <leeming@lyx.org>
|
2002-10-24 Angus Leeming <leeming@lyx.org>
|
||||||
|
|
||||||
* lyxgluelength.h: no need to forward declare BufferParams
|
* lyxgluelength.h: no need to forward declare BufferParams
|
||||||
|
@ -1024,8 +1024,10 @@ Paragraph * Paragraph::TeXOnePar(Buffer const * buf,
|
|||||||
if (language->babel() != previous_language->babel()
|
if (language->babel() != previous_language->babel()
|
||||||
// check if we already put language command in TeXEnvironment()
|
// check if we already put language command in TeXEnvironment()
|
||||||
&& !(style->isEnvironment()
|
&& !(style->isEnvironment()
|
||||||
&& (!previous() || previous()->layout() != layout() ||
|
&& (!previous() ||
|
||||||
previous()->params().depth() != params().depth())))
|
(previous()->layout() != layout() &&
|
||||||
|
previous()->getDepth() <= getDepth())
|
||||||
|
|| previous()->getDepth() < getDepth())))
|
||||||
{
|
{
|
||||||
if (!lyxrc.language_command_end.empty() &&
|
if (!lyxrc.language_command_end.empty() &&
|
||||||
previous_language->babel() != doc_language->babel())
|
previous_language->babel() != doc_language->babel())
|
||||||
|
Loading…
Reference in New Issue
Block a user