]> git.lyx.org Git - features.git/commitdiff
Fix crash when outputting XHTML. Not resetting the paragraphs
authorRichard Heck <rgheck@comcast.net>
Fri, 2 Dec 2011 19:19:16 +0000 (19:19 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 2 Dec 2011 19:19:16 +0000 (19:19 +0000)
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

src/insets/InsetBranch.cpp
status.20x

index f0920956cd3fe4d091188f26129a745d68bb230b..3a158e93d5b56797d94d482d89315a33d3d42b22 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();
 }
 
index 9b7b0b626fcb866f240b41311455856cc43d0ea6..a5e5c5d72ea3eabb31d64bcdf09da63d23d4f7b0 100644 (file)
@@ -48,6 +48,8 @@ What's new
 
 * DOCUMENT INPUT/OUTPUT
 
+- Fix crash when exporting branches to XHTML.
+
 
 * TEX2LYX