Commit a189dea3 authored by Scott Petrovic's avatar Scott Petrovic

show bounds for curves widget

parent e082b84a
...@@ -272,6 +272,8 @@ void KisCurveWidget::paintEvent(QPaintEvent *) ...@@ -272,6 +272,8 @@ void KisCurveWidget::paintEvent(QPaintEvent *)
// FIXME: let's user tell the last word (in config) // FIXME: let's user tell the last word (in config)
//p.setRenderHint(QPainter::Antialiasing); //p.setRenderHint(QPainter::Antialiasing);
// fill with color to show widget bounds
p.fillRect(rect(), palette().base());
// draw background // draw background
if (!d->m_pix.isNull()) { if (!d->m_pix.isNull()) {
...@@ -285,9 +287,7 @@ void KisCurveWidget::paintEvent(QPaintEvent *) ...@@ -285,9 +287,7 @@ void KisCurveWidget::paintEvent(QPaintEvent *)
d->m_pixmapDirty = false; d->m_pixmapDirty = false;
} }
p.drawPixmap(0, 0, *d->m_pixmapCache); p.drawPixmap(0, 0, *d->m_pixmapCache);
} else }
p.fillRect(rect(), palette().background());
d->drawGrid(p, wWidth, wHeight); d->drawGrid(p, wWidth, wHeight);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment