From: Richard Heck Date: Fri, 2 Dec 2011 19:19:16 +0000 (+0000) Subject: Fix crash when outputting XHTML. Not resetting the paragraphs X-Git-Tag: 2.0.3~171 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fdd31a75a5c0006601be6d2fb6527d43eb2d5f10;p=features.git 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 --- diff --git a/src/insets/InsetBranch.cpp b/src/insets/InsetBranch.cpp index f0920956cd..3a158e93d5 100644 --- a/src/insets/InsetBranch.cpp +++ b/src/insets/InsetBranch.cpp @@ -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(); } diff --git a/status.20x b/status.20x index 9b7b0b626f..a5e5c5d72e 100644 --- a/status.20x +++ b/status.20x @@ -48,6 +48,8 @@ What's new * DOCUMENT INPUT/OUTPUT +- Fix crash when exporting branches to XHTML. + * TEX2LYX