diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-18 00:44:23 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-18 00:44:23 +0000 |
| commit | a277409065ed862a820304aa5d3dd22e667e3753 (patch) | |
| tree | 293f3fd4576a15a08d061d6a57fe13fdcc268163 /src/live_effects/effect.cpp | |
| parent | noop: wording (diff) | |
| download | inkscape-a277409065ed862a820304aa5d3dd22e667e3753.tar.gz inkscape-a277409065ed862a820304aa5d3dd22e667e3753.zip | |
Let acceptsNumClicks() distinguish between invalid LPE and valid ones that expect zero clicks
(bzr r6677)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 4a71b2656..5dfd3fb20 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -110,6 +110,7 @@ const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, sizeof(L int Effect::acceptsNumClicks(EffectType type) { switch (type) { + case INVALID_LPE: return -1; // in case we want to distinguish between invalid LPE and valid ones that expect zero clicks case ANGLE_BISECTOR: return 3; case CIRCLE_3PTS: return 3; case CIRCLE_WITH_RADIUS: return 2; |
