From: André Pönitz Date: Mon, 26 Aug 2002 09:31:09 +0000 (+0000) Subject: essentially Martin's patch to fix the \end-deeper bug X-Git-Tag: 1.6.10~18460 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=52ef85f57f61967d70f4d710351ffb62fad82454;p=lyx.git 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 --- diff --git a/src/insets/insettext.C b/src/insets/insettext.C index 8bb0a7d622..7a8111fe2f 100644 --- a/src/insets/insettext.C +++ b/src/insets/insettext.C @@ -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); } } diff --git a/src/paragraph.C b/src/paragraph.C index 2f668a362d..fe8cf4f368 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -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()) { diff --git a/src/paragraph.h b/src/paragraph.h index 5474c1554f..5317f01011 100644 --- a/src/paragraph.h +++ b/src/paragraph.h @@ -84,7 +84,7 @@ public: /// void write(Buffer const *, std::ostream &, BufferParams const &, - depth_type) const; + depth_type & depth) const; /// void validate(LaTeXFeatures &) const;