Update to paint to fill the size of the object, not the size of texture

This commit is contained in:
David Edmundson 2014-02-20 12:28:28 +01:00
parent d0bc8b2a75
commit f104d171da

View File

@ -141,7 +141,7 @@ QSGNode* SvgItem::updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData* updateP
m_svg.data()->setContainsMultipleImages(!m_elementID.isEmpty());
const QImage image = m_svg.data()->image(m_elementID);
textureNode->setRect(0,0, image.width(), image.height());
textureNode->setRect(0,0, width(), height());
delete m_texture;
m_texture = window()->createTextureFromImage(image);