Code

remove #ifdef that was used to disable on-canvas editing.
authorjohanengelen <johanengelen@users.sourceforge.net>
Thu, 20 Mar 2008 23:12:59 +0000 (23:12 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Thu, 20 Mar 2008 23:12:59 +0000 (23:12 +0000)
fix initialization of PointParam

src/live_effects/parameter/point.cpp

index 841d11d270e17a2cb9c066b489ea8f98040eedb8..93922de952716a17f82d253823d3e70d83071982 100644 (file)
@@ -25,8 +25,6 @@
 #include "desktop.h"
 #include "selection.h"
 
-#define LPEPOINTPARAM_DEBUG // undefine to disable all on-canvas editing code for PointParam
-
 namespace Inkscape {
 
 namespace LivePathEffect {
@@ -36,9 +34,11 @@ PointParam::PointParam( const Glib::ustring& label, const Glib::ustring& tip,
                         Effect* effect, Geom::Point default_value )
     : Geom::Point(default_value), Parameter(label, tip, key, wr, effect), defvalue(default_value)
 {
-#ifdef LPEPOINTPARAM_DEBUG
     oncanvas_editable = true;
-#endif
+
+    knot_shape = SP_KNOT_SHAPE_SQUARE;
+    knot_mode  = SP_KNOT_MODE_XOR;
+    knot_color = 0x00ff0000;
 }
 
 PointParam::~PointParam()
@@ -96,9 +96,6 @@ PointParam::param_newWidget(Gtk::Tooltips * tooltips)
     pButton->add(*pIcon);
     pButton->show();
     pButton->signal_clicked().connect(sigc::mem_fun(*this, &PointParam::on_button_click));
-#ifndef LPEPOINTPARAM_DEBUG
-    pButton->set_sensitive(false);
-#endif
 
     Gtk::HBox * hbox = Gtk::manage( new Gtk::HBox() );
     static_cast<Gtk::HBox*>(hbox)->pack_start(*pButton, true, true);