aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2015-02-11 12:54:58 +0100
committerJean-Baptiste Mardelle <[email protected]>2015-02-11 12:54:58 +0100
commitba20c29b9f0b214c183acfc1ce63e8c1e18f8544 (patch)
tree94afabc1563463b279236b6a951525a9e31de15c
parentdbadac267477fcc44feccd5bf3ac70b435c15722 (diff)
Fix garbage in audio clip icon
-rw-r--r--src/renderer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/renderer.cpp b/src/renderer.cpp
index fe9ccf8..2495cbb 100644
--- a/src/renderer.cpp
+++ b/src/renderer.cpp
@@ -1003,6 +1003,7 @@ void Render::processFileProperties()
} else if (frame->get_int("test_audio") == 0) {
QIcon icon = QIcon::fromTheme("audio-x-generic");
QImage img(fullWidth, info.imageHeight, QImage::Format_ARGB32_Premultiplied);
+ img.fill(Qt::transparent);
QPainter painter( &img );
icon.paint(&painter, 0, 0, img.width(), img.height());
emit replyGetImage(info.clipId, img);