mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
ce379265a6
commit
ae9ef7c30f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user