If we're doing this test elsewhere, we should also do it here.

(All of these commits, by the way, are just stuff I'm stumbling
across while trying to deal with the newline bug.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27216 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-10-31 15:36:08 +00:00
parent ce379265a6
commit ae9ef7c30f

View File

@ -82,9 +82,14 @@ 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()) {
if (par->layout().isEnvironment()) {
if (style.isEnvironment()) {
par = TeXEnvironment(buf, text, par,
os, texrow, runparams);
} else {