]> git.lyx.org Git - features.git/commitdiff
Hmm.. I don't think people do like this red color I introduced accidentally in r36639.
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 1 Dec 2010 00:35:35 +0000 (00:35 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 1 Dec 2010 00:35:35 +0000 (00:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36640 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCaption.cpp

index b857af4848cdc274c9f8d9a066f9948ca80c610a..2eb355dd1face0d063320e5578806787b8670269 100644 (file)
@@ -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));
 }