From: cilix42 Date: Mon, 18 Aug 2008 00:44:23 +0000 (+0000) Subject: Let acceptsNumClicks() distinguish between invalid LPE and valid ones that expect... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eac94793745a61429b52a4b489e148737d091749;p=inkscape.git Let acceptsNumClicks() distinguish between invalid LPE and valid ones that expect zero clicks --- 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 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;