Don't access a variable that may not exist.
svn path=/trunk/KDE/kdebase/workspace/; revision=1037434
This commit is contained in:
parent
cd9ab34fec
commit
c221426b5e
1 changed files with 10 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue