]> git.lyx.org Git - features.git/commit
** Fix language switch issue introduced by the CJK patch **
authorJürgen Spitzmüller <spitz@lyx.org>
Fri, 25 Jan 2008 13:27:08 +0000 (13:27 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Fri, 25 Jan 2008 13:27:08 +0000 (13:27 +0000)
commitcbf599b911c4174044c69c61b0e2923712ed686b
tree864d2ef938d4df7c0c1336dbe89ca4826636250d
parentf62fbd05d2c5f8c4476ffcf3a465122fb7f80850
** Fix language switch issue introduced by the CJK patch **

* src/output_latex.{cpp,h}:
- (latexParagraphs, TeXEnvironment, TeXOnePar, TeXDeeper): pass Text element
   instead of ParagraphList. This is necessary to detect whether we are in the main text.
- check if we are in the main text for language switches, if needed.
* src/Buffer.cpp:
* src/insets/InsetEnvironment.cpp:
* src/insets/InsetText.cpp:
* src/mathed/InsetMathMBox.cpp:
- adapt to new latexParagraphs definition.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22666 a592a061-630c-0410-9148-cb99ea01b6c8
src/Buffer.cpp
src/insets/InsetEnvironment.cpp
src/insets/InsetText.cpp
src/mathed/InsetMathMBox.cpp
src/output_latex.cpp
src/output_latex.h