cosmetics.

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

View File

@ -1378,18 +1378,14 @@ Font const Paragraph::getFont(BufferParams const & bparams, pos_type pos,
{
BOOST_ASSERT(pos >= 0);
Layout_ptr const & lout = layout();
Font font = getFontSettings(bparams, pos);
pos_type const body_pos = beginOfBody();
Font * layoutfont;
if (pos < body_pos)
layoutfont = &lout->labelfont;
font.realize(layout_->labelfont);
else
layoutfont = &lout->font;
font.realize(layout_->font);
Font font = getFontSettings(bparams, pos);
font.realize(*layoutfont);
font.realize(outerfont);
font.realize(bparams.getFont());