From af8d25189f88abf89cdbe0e180e271c94079624f Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 6 May 2008 15:52:23 +0000 Subject: [PATCH] fix 224981 --- src/live_effects/effect.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 40813041c..cee0c0b21 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -346,8 +346,11 @@ Effect::getParameter(const char * key) Parameter * Effect::getNextOncanvasEditableParam() { + if (param_vector.size() == 0) // no parameters + return NULL; + oncanvasedit_it++; - if (oncanvasedit_it == static_cast(param_vector.size())) { + if (oncanvasedit_it >= static_cast(param_vector.size())) { oncanvasedit_it = 0; } int old_it = oncanvasedit_it; -- 2.30.2