]> git.lyx.org Git - features.git/commitdiff
At least partially fix problem noted by Vincent. We were being over-agressive
authorRichard Heck <rgheck@comcast.net>
Sat, 25 Oct 2008 15:10:54 +0000 (15:10 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 25 Oct 2008 15:10:54 +0000 (15:10 +0000)
with the fix at r26163.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27111 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text2.cpp

index de328e3e2a4a32537f17a283aa064c69e34eded3..ea534752671efe104b520f33b9db8469934b2565 100644 (file)
@@ -117,13 +117,7 @@ FontInfo Text::labelFont(Buffer const & buffer, Paragraph const & par) const
                // In case the default family has been customized
                if (layout.labelfont.family() == INHERIT_FAMILY)
                        lf.setFamily(buffer.params().getFont().fontInfo().family());
-               // FIXME As above....
-               InsetCollapsable const * icp = par.inInset().asInsetCollapsable();
-               if (!icp)
-                       return lf;
-               FontInfo icf = icp->getLayout().labelfont();
-               icf.realize(lf);
-               return icf;
+               return lf;
        }
 
        FontInfo font = layout.labelfont;