Revert "Initialize scale factor to the last scale factor set on any instance"
This reverts commit 15f470fafc
.
This commit is contained in:
parent
a570254e1a
commit
73b6d92258
@ -97,7 +97,6 @@ public:
|
||||
|
||||
static QHash<QString, SharedSvgRenderer::Ptr> s_renderers;
|
||||
static QWeakPointer<Theme> s_systemColorsCache;
|
||||
static qreal s_lastScaleFactor;
|
||||
|
||||
Svg *q;
|
||||
QWeakPointer<Theme> theme;
|
||||
|
@ -146,7 +146,7 @@ SvgPrivate::SvgPrivate(Svg *svg)
|
||||
colorGroup(Plasma::Theme::NormalColorGroup),
|
||||
lastModified(0),
|
||||
devicePixelRatio(1.0),
|
||||
scaleFactor(s_lastScaleFactor),
|
||||
scaleFactor(1.0),
|
||||
status(Svg::Status::Normal),
|
||||
multipleImages(false),
|
||||
themed(false),
|
||||
@ -700,7 +700,6 @@ void SvgPrivate::colorsChanged()
|
||||
|
||||
QHash<QString, SharedSvgRenderer::Ptr> SvgPrivate::s_renderers;
|
||||
QWeakPointer<Theme> SvgPrivate::s_systemColorsCache;
|
||||
qreal SvgPrivate::s_lastScaleFactor = 1.0;
|
||||
|
||||
Svg::Svg(QObject *parent)
|
||||
: QObject(parent),
|
||||
@ -747,7 +746,6 @@ void Svg::setScaleFactor(qreal ratio)
|
||||
}
|
||||
|
||||
d->scaleFactor = floor(ratio);
|
||||
d->s_lastScaleFactor = d->scaleFactor;
|
||||
//not resize() because we want to do it unconditionally
|
||||
QRectF rect;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user