Add a comment about how to clean this up. This looks like post-1.6 stuff,

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
This commit is contained in:
Richard Heck 2008-08-15 01:03:32 +00:00
parent 30efb132b3
commit a40183c0a9

View 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;