diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-05-06 15:52:23 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-05-06 15:52:23 +0000 |
| commit | 5387b44c018ec0f4ca8193b5c8407c9df869999b (patch) | |
| tree | b79b6c597b203ccd2e8014ff0e8d652ffaa6a7cc /src/live_effects/effect.cpp | |
| parent | Add svg-path-test.h to src/svg/Makefile_insert (diff) | |
| download | inkscape-5387b44c018ec0f4ca8193b5c8407c9df869999b.tar.gz inkscape-5387b44c018ec0f4ca8193b5c8407c9df869999b.zip | |
fix 224981
(bzr r5621)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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<int>(param_vector.size())) { + if (oncanvasedit_it >= static_cast<int>(param_vector.size())) { oncanvasedit_it = 0; } int old_it = oncanvasedit_it; |
