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:
André Pönitz 2002-08-26 09:31:09 +00:00
parent 80124c1f5b
commit 52ef85f57f
3 changed files with 4 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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()) {

View File

@ -84,7 +84,7 @@ public:
///
void write(Buffer const *, std::ostream &, BufferParams const &,
depth_type) const;
depth_type & depth) const;
///
void validate(LaTeXFeatures &) const;