fix elementSize()

This commit is contained in:
Marco Martin 2014-02-21 19:52:25 +01:00
parent 4a0be9acd9
commit 372912d53e

View File

@ -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();