From: Richard Heck Date: Fri, 15 Aug 2008 01:03:32 +0000 (+0000) Subject: Add a comment about how to clean this up. This looks like post-1.6 stuff, X-Git-Tag: 1.6.10~3641 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a40183c0a9579fb344c636076d73cc43beb694e7;p=lyx.git 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 --- diff --git a/src/Text2.cpp b/src/Text2.cpp index 0386ae764f..9dfcfe1c2e 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -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;