FrameSvg: Don't reset the cache when resizing
We were passing the enum as the first argument, which was being converted to 0 and would set lastModified to 0. This would in turn result in the cache being bypassed because now `findInCache with a lastModified timestamp of 0 is deprecated` taking the slow path on most occasions.
This commit is contained in:
parent
d1617d6d2d
commit
f2ed2ca183
@ -179,7 +179,7 @@ void FrameSvg::resizeFrame(const QSizeF &size)
|
||||
d->pendingFrameSize = size.toSize();
|
||||
|
||||
if (!d->repaintBlocked) {
|
||||
d->updateFrameData(FrameSvgPrivate::UpdateFrame);
|
||||
d->updateFrameData(Svg::d->lastModified, FrameSvgPrivate::UpdateFrame);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user