]> git.lyx.org Git - features.git/commitdiff
Fix crash when outputting XHTML. Not resetting the paragraphs
authorRichard Heck <rgheck@comcast.net>
Sat, 29 Oct 2011 20:14:43 +0000 (20:14 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 29 Oct 2011 20:14:43 +0000 (20:14 +0000)
was an oversight here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40068 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBranch.cpp

index 3c917db7f7e2ff1e41917d6c8ff4d370e594f9b9..174b3e655bc6c9274f41a0e416c2c83ee611faae 100644 (file)
@@ -230,8 +230,12 @@ int InsetBranch::docbook(odocstream & os,
 
 docstring InsetBranch::xhtml(XHTMLStream & xs, OutputParams const & rp) const
 {
-       if (isBranchSelected())
-               xhtmlParagraphs(text(), buffer(), xs, rp);
+       if (isBranchSelected()) {
+               OutputParams newrp = rp;
+               newrp.par_begin = 0;
+               newrp.par_end = text().paragraphs().size();
+               xhtmlParagraphs(text(), buffer(), xs, newrp);
+       }
        return docstring();
 }