From d83e0022017fa6245173e55332f60b7a4a78dc31 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 18 Apr 2011 01:42:01 +0000 Subject: [PATCH] Fairly trivial change here: Just protect against inheriting limits to output. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38430 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetText.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index f0a6c81832..96d5a34d5a 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -490,9 +490,15 @@ docstring InsetText::xhtml(XHTMLStream & xs, OutputParams const & runparams) con // if so, try to close fonts, etc. // There are probably limits to how well we can do here, though, and we will // have to rely upon users not putting footnotes inside noun-type insets. -docstring InsetText::insetAsXHTML(XHTMLStream & xs, OutputParams const & runparams, +docstring InsetText::insetAsXHTML(XHTMLStream & xs, OutputParams const & rp, XHTMLOptions opts) const { + // we will always want to output all our paragraphs when we are + // called this way. + OutputParams runparams = rp; + runparams.par_begin = 0; + runparams.par_end = text().paragraphs().size(); + if (undefined()) { xhtmlParagraphs(text_, buffer(), xs, runparams); return docstring();