]> git.lyx.org Git - features.git/commitdiff
cosmetics.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 18 Aug 2007 13:08:36 +0000 (13:08 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 18 Aug 2007 13:08:36 +0000 (13:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19632 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 5b11165acfa102d2af58646b816702444eeea683..80409eafd704342f41d94268127d14f1f1ecbbf8 100644 (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());