* Paragraph::getFontSettings(): small optimisation: avoid a Font copy

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19631 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-08-18 13:00:07 +00:00
parent f137d5bdad
commit ba379f05d7

View File

@ -1382,14 +1382,14 @@ Font const Paragraph::getFont(BufferParams const & bparams, pos_type pos,
pos_type const body_pos = beginOfBody();
Font layoutfont;
Font * layoutfont;
if (pos < body_pos)
layoutfont = lout->labelfont;
layoutfont = &lout->labelfont;
else
layoutfont = lout->font;
layoutfont = &lout->font;
Font font = getFontSettings(bparams, pos);
font.realize(layoutfont);
font.realize(*layoutfont);
font.realize(outerfont);
font.realize(bparams.getFont());