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:
parent
bc0280ddb0
commit
34935428e8
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user