Code

Add lpe-line_segment to LPETool toolbar
authorcilix42 <cilix42@users.sourceforge.net>
Mon, 18 Aug 2008 00:36:52 +0000 (00:36 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Mon, 18 Aug 2008 00:36:52 +0000 (00:36 +0000)
src/live_effects/effect.cpp
src/widgets/toolbox.cpp

index 472fe5d9dd51713e961624a276b7abadb497d4d0..705ecede8c92a88c7ccea4cc370107b5c686769f 100644 (file)
@@ -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;
     }
 }
index 0ec8d9be11853452b79516461165e1578ffa163e..fd496a5ebd3f8c8150fa5cfd2466b6978f850d7a 100644 (file)
@@ -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)