correctly scale up svgs

scale the natural size as well as sizes
this makes hugh dpi ratios to be more uniformly scaled
This commit is contained in:
Marco Martin 2015-06-11 18:00:28 -07:00
parent bc0280ddb0
commit 34935428e8

View File

@ -542,7 +542,7 @@ QRectF SvgPrivate::findAndCacheElementRect(const QString &elementId)
QRectF elementRect = renderer->elementExists(elementId) ?
renderer->matrixForElement(elementId).map(renderer->boundsOnElement(elementId)).boundingRect() :
QRectF();
naturalSize = renderer->defaultSize();
naturalSize = renderer->defaultSize() * scaleFactor;
qreal dx = size.width() / naturalSize.width();
qreal dy = size.height() / naturalSize.height();