fix bug with language changes in nested environment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@5504 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2002-10-24 17:52:45 +00:00
parent f9fff1b21a
commit f89e505718
4 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-10-23 Dekel Tsur <dekelts@tau.ac.il>
* kbd/koi8-u.kmap: Fix crash when using the map.
2002-10-23 Gady Kozma <gadykozma@yahoo.com>
* examples/he_example_raw.lyx:

View File

@ -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-14 Juergen Vigna <jug@sad.it>
* undo_funcs.C (textHandleUndo): alter the order in which the

View File

@ -1311,8 +1311,10 @@ Paragraph * Paragraph::TeXOnePar(Buffer const * buf,
if (language->babel() != previous_language->babel()
// check if we already put language command in TeXEnvironment()
&& !(style.isEnvironment()
&& (!previous() || previous()->layout() != layout() ||
previous()->params().depth() != params().depth())))
&& (!previous() ||
(previous()->layout() != layout() &&
previous()->getDepth() <= getDepth())
|| previous()->getDepth() < getDepth())))
{
if (!lyxrc.language_command_end.empty() &&
previous_language->babel() != doc_language->babel())

View File

@ -39,6 +39,10 @@ What's new
** Bug fixes
- fix bug with language changes in nested environment
- fix crash when using koi8-u keymap
- fix bug where special characters in equations label confuse LyX
(this was a new bug in 1.2.1)