mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
essentially Martin's patch to fix the \end-deeper bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5108 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
80124c1f5b
commit
52ef85f57f
@ -239,8 +239,9 @@ void InsetText::writeParagraphData(Buffer const * buf, ostream & os) const
|
||||
{
|
||||
ParagraphList::iterator it = paragraphs.begin();
|
||||
ParagraphList::iterator end = paragraphs.end();
|
||||
Paragraph::depth_type dth = 0;
|
||||
for (; it != end; ++it) {
|
||||
it->write(buf, os, buf->params, 0);
|
||||
it->write(buf, os, buf->params, dth);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -166,7 +166,7 @@ Paragraph::~Paragraph()
|
||||
|
||||
void Paragraph::write(Buffer const * buf, ostream & os,
|
||||
BufferParams const & bparams,
|
||||
depth_type dth) const
|
||||
depth_type & dth) const
|
||||
{
|
||||
// The beginning or end of a deeper (i.e. nested) area?
|
||||
if (dth != params().depth()) {
|
||||
|
@ -84,7 +84,7 @@ public:
|
||||
|
||||
///
|
||||
void write(Buffer const *, std::ostream &, BufferParams const &,
|
||||
depth_type) const;
|
||||
depth_type & depth) const;
|
||||
///
|
||||
void validate(LaTeXFeatures &) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user