summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authormsoegtrop <>2017-06-07 10:56:05 +0000
committerjabiertxof <info@marker.es>2017-06-07 10:56:05 +0000
commitb098e663bf920d38a5f99e39b7d278db4fa4949e (patch)
treed0325127d2db81503c6891d52d9386ee023cef65 /src/live_effects/effect.cpp
parentReorder hide and lock from context menu (diff)
parentfixed enum order + added cpp files to POFILES.in (diff)
downloadinkscape-b098e663bf920d38a5f99e39b7d278db4fa4949e.tar.gz
inkscape-b098e663bf920d38a5f99e39b7d278db4fa4949e.zip
Merge LPE bool from Michael Soegtrop
(bzr r15737)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index 21136353c..9e1555c26 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -62,6 +62,7 @@
#include "live_effects/lpe-test-doEffect-stack.h"
#include "live_effects/lpe-text_label.h"
#include "live_effects/lpe-vonkoch.h"
+#include "live_effects/lpe-bool.h"
#include "xml/node-event-vector.h"
#include "message-stack.h"
@@ -124,6 +125,7 @@ const Util::EnumData<EffectType> LPETypeData[] = {
/* 9.93 */
{MEASURE_LINE, N_("Measure Line"), "measure_line"},
{FILLET_CHAMFER, N_("Fillet/Chamfer"), "fillet_chamfer"},
+ {BOOL_OP, N_("Boolean operation"), "bool_op"},
#ifdef LPE_ENABLE_TEST_EFFECTS
{DOEFFECTSTACK_TEST, N_("doEffect stack test"), "doeffectstacktest"},
{ANGLE_BISECTOR, N_("Angle bisector"), "angle_bisector"},
@@ -164,6 +166,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
{
Effect* neweffect = NULL;
switch (lpenr) {
+ case BOOL_OP:
+ neweffect = static_cast<Effect*> ( new LPEBool(lpeobj) );
+ break;
case PATTERN_ALONG_PATH:
neweffect = static_cast<Effect*> ( new LPEPatternAlongPath(lpeobj) );
break;