Question:

This is the current framesvg.cpp, the beginning of the updateSizes()

----------------
void FrameSvgPrivate::updateSizes()
{
    FrameData *frame = frames[prefix];
    Q_ASSERT(frame);

    QSize s = q->size();
    q->resize();

    frame->cachedBackground = QPixmap();
    frame->cachedMask = QRegion();
----------------

We first store the size into s, and then do a q->resize(). Why?

When those two lines switch places, so that s is the newest size, everything 
is ok. (I'll keep testing whether it is just accident)


-- 
Sanity is the trademark of a weak mind.
    -- Mark Harrold

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to