fix elementSize()
This commit is contained in:
parent
4a0be9acd9
commit
372912d53e
@ -514,7 +514,7 @@ QRectF SvgPrivate::findAndCacheElementRect(const QString &elementId)
|
||||
QRectF elementRect = renderer->elementExists(elementId) ?
|
||||
renderer->matrixForElement(elementId).map(renderer->boundsOnElement(elementId)).boundingRect() :
|
||||
QRectF();
|
||||
naturalSize = renderer->defaultSize() * devicePixelRatio;
|
||||
naturalSize = renderer->defaultSize();
|
||||
qreal dx = size.width() / naturalSize.width();
|
||||
qreal dy = size.height() / naturalSize.height();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user