Fix crash when outputting XHTML. Not resetting the paragraphs

was an oversight here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40068 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-10-29 20:14:43 +00:00
parent b66e3c6e0f
commit 34d5863776

View File

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