mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
Avoid scaling for null pixmaps (results in warnings)
This commit is contained in:
@@ -211,7 +211,7 @@ namespace BlackGui
|
||||
else
|
||||
{
|
||||
QPixmap qpm = pm.pixmap();
|
||||
if (qpm.height() > MaxHeight)
|
||||
if (qpm.height() > MaxHeight && !qpm.isNull())
|
||||
{
|
||||
qpm = qpm.scaledToWidth(MaxHeight, Qt::SmoothTransformation);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user