Commit ce7f97b4 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

fix resize when no image is set

parent 46c03a5d
......@@ -89,9 +89,9 @@ dtkVisualizationViewVideoRaster::dtkVisualizationViewVideoRaster(QWidget *parent
color = parent->palette().color(QWidget::backgroundRole());
}
QImage image(size.width(), size.height(), QImage::Format_RGBA8888);
image.fill(color);
d->setPixmap(QPixmap::fromImage(image));
d->image = QImage(size.width(), size.height(), QImage::Format_RGBA8888);
d->image.fill(color);
d->setPixmap(QPixmap::fromImage(d->image));
QPalette p = palette();
p.setColor(QPalette::Window, Qt::black);
......
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