From c41315564c4e3333ad43cd7212db90e2a7e93624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20L=C3=B3pez?= Date: Tue, 30 Apr 2024 22:01:15 +0200 Subject: [PATCH] effect: Fix clip region in AnimationEffect --- src/effect/animationeffect.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/effect/animationeffect.cpp b/src/effect/animationeffect.cpp index 4305c974f2..08a35f98ad 100644 --- a/src/effect/animationeffect.cpp +++ b/src/effect/animationeffect.cpp @@ -523,7 +523,6 @@ void AnimationEffect::paintWindow(const RenderTarget &renderTarget, const Render { Q_D(AnimationEffect); AniMap::const_iterator entry = d->m_animations.constFind(w); - auto finalRegion = region; if (entry != d->m_animations.constEnd()) { for (QList::const_iterator anim = entry->first.constBegin(); anim != entry->first.constEnd(); ++anim) { @@ -564,7 +563,7 @@ void AnimationEffect::paintWindow(const RenderTarget &renderTarget, const Render break; } case Clip: - finalRegion = clipRect(w->expandedGeometry().toAlignedRect(), *anim); + region = clipRect(w->expandedGeometry().toAlignedRect(), *anim); break; case Translation: data += QPointF(interpolated(*anim, 0), interpolated(*anim, 1));