]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCaption.cpp
Hmm.. I don't think people do like this red color I introduced accidentally in r36639.
[features.git] / 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));
 }