Fix black float background

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19839 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2007-08-27 20:27:02 +00:00
parent b52c339cce
commit def5620e58
2 changed files with 3 additions and 2 deletions

View File

@ -84,6 +84,8 @@ InsetCollapsable::InsetCollapsable
setDrawFrame(true);
setFrameColor(Color::collapsableframe);
setButtonLabel();
// Fallback for lacking inset layout item
layout_.bgcolor = Color::background;
}
@ -247,7 +249,7 @@ bool InsetCollapsable::setMouseHover(bool mouse_hover)
void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const
{
autoOpen_ = pi.base.bv->cursor().isInside(this);
text_.background_color_ = backgroundColor();
const int xx = x + TEXT_TO_INSET_OFFSET;
// Draw button first -- top, left or only

View File

@ -194,7 +194,6 @@ void InsetText::draw(PainterInfo & pi, int x, int y) const
TextMetrics & tm = pi.base.bv->textMetrics(&text_);
text_.background_color_ = backgroundColor();
text_.draw(pi, x + border_, y);
if (drawFrame_) {