From: buliabyak Date: Tue, 6 May 2008 15:52:23 +0000 (+0000) Subject: fix 224981 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=af8d25189f88abf89cdbe0e180e271c94079624f;p=inkscape.git fix 224981 --- 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;