From a189dea39cc6c87a0e5427c80be28be975c51724 Mon Sep 17 00:00:00 2001 From: Scott Petrovic Date: Wed, 1 Oct 2014 18:25:26 -0500 Subject: [PATCH] show bounds for curves widget --- krita/ui/widgets/kis_curve_widget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/krita/ui/widgets/kis_curve_widget.cpp b/krita/ui/widgets/kis_curve_widget.cpp index 64a7582861..bb90f909af 100644 --- a/krita/ui/widgets/kis_curve_widget.cpp +++ b/krita/ui/widgets/kis_curve_widget.cpp @@ -272,6 +272,8 @@ void KisCurveWidget::paintEvent(QPaintEvent *) // FIXME: let's user tell the last word (in config) //p.setRenderHint(QPainter::Antialiasing); + // fill with color to show widget bounds + p.fillRect(rect(), palette().base()); // draw background if (!d->m_pix.isNull()) { @@ -285,9 +287,7 @@ void KisCurveWidget::paintEvent(QPaintEvent *) d->m_pixmapDirty = false; } p.drawPixmap(0, 0, *d->m_pixmapCache); - } else - p.fillRect(rect(), palette().background()); - + } d->drawGrid(p, wWidth, wHeight); -- GitLab