[effects/slidingpopups] Fix possible segfault

Reviewers: #kwin, mart, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D14087
This commit is contained in:
Vlad Zagorodniy 2018-07-13 10:01:46 +03:00
parent 4e1e22c76d
commit 461aace55f

View file

@ -393,7 +393,7 @@ void SlidingPopupsEffect::slotPropertyNotify(EffectWindow* w, long a)
//do we want an actual slide?
if (data.length() >= (int)(sizeof(uint32_t) * 5))
animData.slideLength = d[5];
animData.slideLength = d[4];
} else {
animData.fadeInDuration = mFadeInTime;
animData.fadeOutDuration = mFadeOutTime;