]> git.lyx.org Git - features.git/commitdiff
fix latexArgInsets for sequences qith nested paragraphs
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 24 Dec 2012 12:02:24 +0000 (13:02 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 24 Dec 2012 12:02:24 +0000 (13:02 +0100)
src/output_latex.cpp

index 3f6b44ec3daa3e01f48cf8e933ad50b222e89f40..62d7b4511e426f22414109d346a75ac34d1ef97f 100644 (file)
@@ -444,8 +444,10 @@ void latexArgInsets(ParagraphList const & pars, ParagraphList::const_iterator pi
        ParagraphList::const_iterator spit = boost::prior(pit, offset);
 
        for (; spit != pars.end(); ++spit) {
-               if (spit->layout() != current_layout)
+               if (spit->layout() != current_layout || spit->params().depth() < current_depth)
                        break;
+               if (spit->params().depth() > current_depth)
+                       continue;
                InsetList::const_iterator it = spit->insetList().begin();
                InsetList::const_iterator end = spit->insetList().end();
                for (; it != end; ++it) {