Make openbtUnit raunparam mutable instead of using a copy of runparams

in latexParagraphs()

The latter results in output stream encoding errors.
This commit is contained in:
Juergen Spitzmueller 2017-02-12 18:12:38 +01:00
parent 527cc8ca9c
commit 00417a1c80
2 changed files with 2 additions and 3 deletions

View File

@ -207,7 +207,7 @@ public:
/** Whether a btUnit (for multiple biblographies) is open. /** Whether a btUnit (for multiple biblographies) is open.
*/ */
bool openbtUnit; mutable bool openbtUnit;
/** Process only the children's aux files with BibTeX. /** Process only the children's aux files with BibTeX.
* This is necessary with chapterbib. * This is necessary with chapterbib.

View File

@ -1259,10 +1259,9 @@ void TeXOnePar(Buffer const & buf,
void latexParagraphs(Buffer const & buf, void latexParagraphs(Buffer const & buf,
Text const & text, Text const & text,
otexstream & os, otexstream & os,
OutputParams const & runparams_in, OutputParams const & runparams,
string const & everypar) string const & everypar)
{ {
OutputParams runparams = runparams_in;
LASSERT(runparams.par_begin <= runparams.par_end, LASSERT(runparams.par_begin <= runparams.par_end,
{ os << "% LaTeX Output Error\n"; return; } ); { os << "% LaTeX Output Error\n"; return; } );