]> git.lyx.org Git - features.git/commitdiff
Add a comment about how to clean this up. This looks like post-1.6 stuff,
authorRichard Heck <rgheck@comcast.net>
Fri, 15 Aug 2008 01:03:32 +0000 (01:03 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 15 Aug 2008 01:03:32 +0000 (01:03 +0000)
since it doesn't actually affect current function.

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

src/Text2.cpp

index 0386ae764f05a475413f323d7e34fb59d921c74f..9dfcfe1c2e28768e1d9af3c732fa2ca386afc17d 100644 (file)
@@ -84,6 +84,12 @@ FontInfo Text::layoutFont(Buffer const & buffer, pit_type const pit) const
                // In case the default family has been customized
                if (layout.font.family() == INHERIT_FAMILY)
                        lf.setFamily(buffer.params().getFont().fontInfo().family());
+               // FIXME
+               // It ought to be possible here just to use Inset::getLayout() and skip
+               // the asInsetCollapsable() bit. Unfortunatley, that doesn't work right
+               // now, because Inset::getLayout() will return a default-constructed
+               // InsetLayout, and that e.g. sets the foreground color to red. So we
+               // need to do some work to make that possible.
                InsetCollapsable const * icp = pars_[pit].inInset()->asInsetCollapsable();
                if (!icp)
                        return lf;