mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
Don't calculate outerfont twice
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16587 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
24bb8d72f3
commit
03f56201d8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user