diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-18 00:32:47 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-18 00:32:47 +0000 |
| commit | 5a55928bc403b41e1a724d9e52c0911603b0966b (patch) | |
| tree | 4d1c84eb25d436af2becaacde97437b8dc2bfcba /src/live_effects/effect.h | |
| parent | New LPE to draw infinite lines (cut by a limiting bounding box), rays and seg... (diff) | |
| download | inkscape-5a55928bc403b41e1a724d9e52c0911603b0966b.tar.gz inkscape-5a55928bc403b41e1a724d9e52c0911603b0966b.zip | |
reimplement acceptsNumParams(); instead of making it a virtual function we just make case distinctions
(bzr r6642)
Diffstat (limited to 'src/live_effects/effect.h')
| -rw-r--r-- | src/live_effects/effect.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h index c01cab5c3..1bc3988ab 100644 --- a/src/live_effects/effect.h +++ b/src/live_effects/effect.h @@ -109,7 +109,8 @@ public: void writeParamsToSVG(); virtual void acceptParamPath (SPPath *param_path); - virtual int acceptsNumParams() { return 0; } + static int acceptsNumParams(EffectType type); + int acceptsNumParams() { return acceptsNumParams(effectType()); } void doAcceptPathPreparations(SPLPEItem *lpeitem); inline bool pathParamAccepted() { return done_pathparam_set; } |
