From 337e92a78fbf1e570cb50d0917d485c0933b4b49 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 18 Feb 2014 11:48:18 +0100 Subject: [PATCH] check against the proper size --- effects/slidingpopups/slidingpopups.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/slidingpopups/slidingpopups.cpp b/effects/slidingpopups/slidingpopups.cpp index fd697f0c62..4f0a9ea11d 100644 --- a/effects/slidingpopups/slidingpopups.cpp +++ b/effects/slidingpopups/slidingpopups.cpp @@ -231,7 +231,7 @@ void SlidingPopupsEffect::paintWindow(EffectWindow* w, int mask, QRegion region, break; case South: default: - if (slideLength < geo.width()) { + if (slideLength < geo.height()) { data.multiplyOpacity(1 - progress); } data.translate(0.0, qMin(geo.height(), slideLength) * progress);