From: Vincent van Ravesteijn Date: Wed, 1 Dec 2010 00:35:35 +0000 (+0000) Subject: Hmm.. I don't think people do like this red color I introduced accidentally in r36639. X-Git-Tag: 2.0.0~1578 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=08cad4b08732ab48845e2f2b542f35528de63bb2;p=features.git 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 --- 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)); }