From 08cad4b08732ab48845e2f2b542f35528de63bb2 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 1 Dec 2010 00:35:35 +0000 Subject: [PATCH] Hmm.. I don't think people do like this red color I introduced accidentally in r36639. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36640 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetCaption.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insets/InsetCaption.cpp b/src/insets/InsetCaption.cpp index b857af4848..2eb355dd1f 100644 --- a/src/insets/InsetCaption.cpp +++ b/src/insets/InsetCaption.cpp @@ -146,7 +146,7 @@ void InsetCaption::drawBackground(PainterInfo & pi, int x, int y) const TextMetrics & tm = pi.base.bv->textMetrics(&text()); int const h = tm.height() + 2 * TEXT_TO_INSET_OFFSET; int const yy = y - TEXT_TO_INSET_OFFSET - tm.ascent(); - pi.pain.fillRectangle(x, yy, labelwidth_, h, Color_red); + pi.pain.fillRectangle(x, yy, labelwidth_, h, pi.backgroundColor(this)); } -- 2.39.2