From a40183c0a9579fb344c636076d73cc43beb694e7 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 15 Aug 2008 01:03:32 +0000 Subject: [PATCH] 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 --- src/Text2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.39.5