Commit 5765a34a authored by Cedric Bellegarde's avatar Cedric Bellegarde
Browse files

Check for empty pixmap, this prevent us drawing an empty area.

parent 7a08e4d2
......@@ -47,7 +47,12 @@ TabHighlightEffect::TabHighlightEffect(TabBar *tabBar)
void TabHighlightEffect::draw(QPainter *painter)
painter->drawPixmap(QPoint(0, 0), sourcePixmap());
const QPixmap &pixmap = sourcePixmap();
if (pixmap.isNull())
painter->drawPixmap(QPoint(0, 0), pixmap);
Q_FOREACH(const QByteArray &propertyName, dynamicPropertyNames())
Supports Markdown
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