don't recreate a null pixmap
if we already have a null pixmap, don't recreate a new one this saves some pixmap ceation on destructors reviewed-by:davidedmundson
This commit is contained in:
parent
c707f6074c
commit
3942c5279e
@ -837,7 +837,9 @@ void FrameSvgPrivate::updateSizes(FrameData *frame) const
|
|||||||
|
|
||||||
QSize s = q->size();
|
QSize s = q->size();
|
||||||
q->resize();
|
q->resize();
|
||||||
|
if (!frame->cachedBackground.isNull()) {
|
||||||
frame->cachedBackground = QPixmap();
|
frame->cachedBackground = QPixmap();
|
||||||
|
}
|
||||||
|
|
||||||
//This has the same size regardless the border is enabled or not
|
//This has the same size regardless the border is enabled or not
|
||||||
frame->fixedTopHeight = q->elementSize(frame->prefix % QLatin1String("top")).height();
|
frame->fixedTopHeight = q->elementSize(frame->prefix % QLatin1String("top")).height();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user