mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
Remove fontlabel initialisation bug work-around. We should fix the inset layout definition parsing instead.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21386 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c5f981f34c
commit
f038c80e33
@ -103,21 +103,16 @@ InsetCollapsable::InsetCollapsable(InsetCollapsable const & rhs)
|
|||||||
|
|
||||||
void InsetCollapsable::setLayout(BufferParams const & bp)
|
void InsetCollapsable::setLayout(BufferParams const & bp)
|
||||||
{
|
{
|
||||||
// Fallback for lacking inset layout item
|
// FIXME: put this in the InsetLayout parsing?
|
||||||
|
// Fallback for lacking inset layout background
|
||||||
layout_.bgcolor = Color_background;
|
layout_.bgcolor = Color_background;
|
||||||
|
|
||||||
// FIXME: it seems the default background is red!
|
|
||||||
layout_ = getLayout(bp);
|
layout_ = getLayout(bp);
|
||||||
|
|
||||||
|
|
||||||
// FIXME: it seems the provided font is partly realized... so we
|
|
||||||
// re-initialize the label font in any case.
|
|
||||||
/*
|
|
||||||
if (layout_.labelfont != inherit_font)
|
if (layout_.labelfont != inherit_font)
|
||||||
return;
|
return;
|
||||||
*/
|
|
||||||
|
|
||||||
// FIXME: it seems some insets don't properly initialise that...
|
// FIXME: put this in the InsetLayout parsing?
|
||||||
|
// Fallback for lacking inset layout labelfont.
|
||||||
layout_.labelfont = sane_font;
|
layout_.labelfont = sane_font;
|
||||||
layout_.labelfont.decSize();
|
layout_.labelfont.decSize();
|
||||||
layout_.labelfont.decSize();
|
layout_.labelfont.decSize();
|
||||||
|
Loading…
Reference in New Issue
Block a user