From 8791d7447034c34fdedc50f261bf5c89c34e59f5 Mon Sep 17 00:00:00 2001 From: cilix42 Date: Mon, 18 Aug 2008 00:36:52 +0000 Subject: [PATCH] Add lpe-line_segment to LPETool toolbar --- src/live_effects/effect.cpp | 3 ++- src/widgets/toolbox.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 472fe5d9d..705ecede8 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -111,9 +111,10 @@ int Effect::acceptsNumClicks(EffectType type) { switch (type) { case ANGLE_BISECTOR: return 3; - case PERP_BISECTOR: return 2; case CIRCLE_3PTS: return 3; case CIRCLE_WITH_RADIUS: return 2; + case LINE_SEGMENT: return 2; + case PERP_BISECTOR: return 2; default: return 0; } } diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 0ec8d9be1..fd496a5eb 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -4787,10 +4787,10 @@ static void sp_dropper_toolbox_prep(SPDesktop */*desktop*/, GtkActionGroup* main static const int num_subtools = 4; static Inkscape::LivePathEffect::EffectType lpesubtools[] = { + Inkscape::LivePathEffect::LINE_SEGMENT, Inkscape::LivePathEffect::ANGLE_BISECTOR, Inkscape::LivePathEffect::CIRCLE_3PTS, Inkscape::LivePathEffect::PERP_BISECTOR, - Inkscape::LivePathEffect::CIRCLE_3PTS, }; static void sp_lpetool_mode_changed(EgeSelectOneAction *act, GObject *tbl) -- 2.30.2