FrameSvg corruption [a bit urgent]

Ivan Čukić ivan.cukic at gmail.com
Fri Jan 16 10:31:24 CET 2009


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



More information about the Plasma-devel mailing list