From 03f56201d8d9f4b926e1a5719dea1d16093fd46e Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 7 Jan 2007 19:06:48 +0000 Subject: [PATCH] Don't calculate outerfont twice git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16587 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/output_latex.C | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/output_latex.C b/src/output_latex.C index 91f0e146b0..f7acbf5ded 100644 --- a/src/output_latex.C +++ b/src/output_latex.C @@ -376,8 +376,10 @@ TeXOnePar(Buffer const & buf, // FIXME UNICODE os << from_utf8(everypar); - bool need_par = pit->simpleTeXOnePar(buf, bparams, - outerFont(std::distance(paragraphs.begin(), pit), paragraphs), + LyXFont const outerfont = + outerFont(std::distance(paragraphs.begin(), pit), + paragraphs); + bool need_par = pit->simpleTeXOnePar(buf, bparams, outerfont, os, texrow, runparams); // Make sure that \\par is done with the font of the last @@ -389,9 +391,6 @@ TeXOnePar(Buffer const & buf, // Is this really needed ? (Dekel) // We do not need to use to change the font for the last paragraph // or for a command. - LyXFont const outerfont = - outerFont(std::distance(paragraphs.begin(), pit), - paragraphs); LyXFont const font = (pit->empty()