More image dialog fixes
This commit is contained in:
parent
8f6ed458a6
commit
a6b2be112b
35 changed files with 95 additions and 50 deletions
|
|
@ -193,7 +193,8 @@ MxcAnimatedImage::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeD
|
|||
}
|
||||
|
||||
QSizeF r = img.size();
|
||||
r.scale(size(), Qt::KeepAspectRatio);
|
||||
if (height() != 0 || width() != 0)
|
||||
r.scale(size(), Qt::KeepAspectRatio);
|
||||
|
||||
n->setRect((width() - r.width()) / 2, (height() - r.height()) / 2, r.width(), r.height());
|
||||
n->setFiltering(QSGTexture::Linear);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue