summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e4aac7d)
raw | patch | inline | side by side (parent: e4aac7d)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 6 May 2008 15:52:23 +0000 (15:52 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 6 May 2008 15:52:23 +0000 (15:52 +0000) |
src/live_effects/effect.cpp | patch | blob | history |
index 40813041c7b50681bb0631813db83c2d6bbb0c0f..cee0c0b211943b356d9d79a77048e62bd2a67199 100644 (file)
Parameter *
Effect::getNextOncanvasEditableParam()
{
+ if (param_vector.size() == 0) // no parameters
+ return NULL;
+
oncanvasedit_it++;
- if (oncanvasedit_it == static_cast<int>(param_vector.size())) {
+ if (oncanvasedit_it >= static_cast<int>(param_vector.size())) {
oncanvasedit_it = 0;
}
int old_it = oncanvasedit_it;