From c9c86f29fbf31e2b70bb465f518d62ed3e684ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 16 Feb 2016 15:06:56 +0100 Subject: [PATCH] fix retargetting script export pushed wrong branch, this fixes the wrong parameter count REVIEW: 126981 --- scripting/scriptedeffect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripting/scriptedeffect.cpp b/scripting/scriptedeffect.cpp index 0165d1b1c6..2f9dddb50c 100644 --- a/scripting/scriptedeffect.cpp +++ b/scripting/scriptedeffect.cpp @@ -378,7 +378,7 @@ QScriptValue kwinEffectRetarget(QScriptContext *context, QScriptEngine *engine) FPx2 target; fpx2FromScriptValue(context->argument(1), target); - const int remainingTime = context->argumentCount() == 2 ? context->argument(1).toVariant().toInt() : -1; + const int remainingTime = context->argumentCount() == 3 ? context->argument(2).toVariant().toInt() : -1; foreach (const quint64 &animId, animIds) { ok |= engine->newVariant(effect->retarget(animId, target, remainingTime)).toBool(); }