Fix crash when outputting XHTML. Not resetting the paragraphs

was an oversight here. (This was r40068 in trunk, but never got
to branch for some reason.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40330 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-12-02 19:19:16 +00:00
parent a3788ac063
commit fdd31a75a5
2 changed files with 8 additions and 2 deletions

View 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();
}

View File

@ -48,6 +48,8 @@ What's new
* DOCUMENT INPUT/OUTPUT
- Fix crash when exporting branches to XHTML.
* TEX2LYX