git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27222 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-11-01 14:45:39 +00:00
parent 682116811e
commit fe25e93e92

View File

@ -82,13 +82,12 @@ TeXDeeper(Buffer const & buf,
ParagraphList const & paragraphs = text.paragraphs();
// FIXME This test should not be necessary.
// We should perhaps issue an error if it is.
Layout const & style = par->forcePlainLayout() ?
buf.params().documentClass().plainLayout() : par->layout();
while (par != paragraphs.end() &&
par->params().depth() == pit->params().depth()) {
par->params().depth() == pit->params().depth()) {
// FIXME This test should not be necessary.
// We should perhaps issue an error if it is.
Layout const & style = par->forcePlainLayout() ?
buf.params().documentClass().plainLayout() : par->layout();
if (style.isEnvironment()) {
par = TeXEnvironment(buf, text, par,
os, texrow, runparams);