Don't access a variable that may not exist.

svn path=/trunk/KDE/kdebase/workspace/; revision=1037434
This commit is contained in:
Lucas Murray 2009-10-19 05:04:35 +00:00
parent cd9ab34fec
commit c221426b5e

View file

@ -93,7 +93,16 @@ void SlidingPopupsEffect::paintWindow( EffectWindow* w, int mask, QRegion region
if( animating )
{
const qreal progress = appearing?(1 - mAppearingWindows[ w ].value()):mDisappearingWindows[ w ].value();
qreal progress;
if( appearing )
progress = 1.0 - mAppearingWindows[ w ].value();
else
{
if( mDisappearingWindows.contains( w ))
progress = mDisappearingWindows[ w ].value();
else
progress = 1.0;
}
const int start = mWindowsData[ w ].start;
switch (mWindowsData[ w ].from)