]> git.lyx.org Git - features.git/commitdiff
essentially Martin's patch to fix the \end-deeper bug
authorAndré Pönitz <poenitz@gmx.net>
Mon, 26 Aug 2002 09:31:09 +0000 (09:31 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 26 Aug 2002 09:31:09 +0000 (09:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5108 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/insettext.C
src/paragraph.C
src/paragraph.h

index 8bb0a7d6226a67418cac999e17b38f2d25995ace..7a8111fe2f60d87460e55851bee7032b211a07d5 100644 (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);
        }
 }
 
index 2f668a362db883d98499d7f4ad53b58b735f2b6a..fe8cf4f368657cfa9632ceb52f6f3a82215597b4 100644 (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()) {
index 5474c1554fd0f7518a28e324d9117284b010b10a..5317f010118096d93c85299593b9920a25b7453f 100644 (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;