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:
Aleix Pol 2020-10-08 04:06:33 +02:00
parent d1617d6d2d
commit f2ed2ca183

View File

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