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) ?
|
QRectF elementRect = renderer->elementExists(elementId) ?
|
||||||
renderer->matrixForElement(elementId).map(renderer->boundsOnElement(elementId)).boundingRect() :
|
renderer->matrixForElement(elementId).map(renderer->boundsOnElement(elementId)).boundingRect() :
|
||||||
QRectF();
|
QRectF();
|
||||||
naturalSize = renderer->defaultSize() * devicePixelRatio;
|
naturalSize = renderer->defaultSize();
|
||||||
qreal dx = size.width() / naturalSize.width();
|
qreal dx = size.width() / naturalSize.width();
|
||||||
qreal dy = size.height() / naturalSize.height();
|
qreal dy = size.height() / naturalSize.height();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user