diff options
Diffstat (limited to 'src/shape-editor.cpp')
| -rw-r--r-- | src/shape-editor.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp index b26b117ca..a7dc872b6 100644 --- a/src/shape-editor.cpp +++ b/src/shape-editor.cpp @@ -62,6 +62,7 @@ ShapeEditor::~ShapeEditor() { } void ShapeEditor::unset_item(SubType type, bool keep_knotholder) { + g_print ("ShapeEditor::unset_item()\n"); Inkscape::XML::Node *old_repr = NULL; switch (type) { @@ -172,6 +173,7 @@ static void shapeeditor_event_attr_changed(Inkscape::XML::Node */*repr*/, gchar gchar const */*old_value*/, gchar const */*new_value*/, bool /*is_interactive*/, gpointer data) { + g_print ("shapeeditor_event_attr_changed()\n"); gboolean changed_np = FALSE; gboolean changed_kh = FALSE; @@ -224,6 +226,7 @@ static Inkscape::XML::NodeEventVector shapeeditor_repr_events = { void ShapeEditor::set_item(SPItem *item, SubType type, bool keep_knotholder) { + g_print ("ShapeEditor::set_item()\n"); // this happens (and should only happen) when for an LPEItem having both knotholder and nodepath the knotholder // is adapted; in this case we don't want to delete the knotholder since this freezes the handles unset_item(type, keep_knotholder); @@ -269,6 +272,7 @@ void ShapeEditor::set_item(SPItem *item, SubType type, bool keep_knotholder) { */ void ShapeEditor::set_item_lpe_path_parameter(SPItem *item, SPObject *lpeobject, const char * key) { + g_print ("ShapeEditor::set_item_lpe_path_parameter()\n"); unset_item(SH_NODEPATH); this->grab_node = -1; @@ -310,6 +314,7 @@ ShapeEditor::set_knotholder(KnotHolder * knot_holder) Why not make a reload function in NodePath and in KnotHolder? */ void ShapeEditor::reset_item (SubType type, bool keep_knotholder) { + g_print ("ShapeEditor::reset_item()\n"); switch (type) { case SH_NODEPATH: if ( (this->nodepath) && (IS_LIVEPATHEFFECT(this->nodepath->object)) ) { @@ -342,7 +347,7 @@ void ShapeEditor::update_statusbar () { } bool ShapeEditor::is_over_stroke (NR::Point event_p, bool remember) { - + g_print ("ShapeEditor::is_over_stroke ()"); if (!this->nodepath) return false; // no stroke in knotholder @@ -354,8 +359,10 @@ bool ShapeEditor::is_over_stroke (NR::Point event_p, bool remember) { SPCurve *curve; if (SP_IS_SHAPE(item)) { + g_print ("; getting curve from shape\n"); curve = sp_shape_get_curve(SP_SHAPE(item)); } else { + g_print ("; getting curve from nodepath's curve\n"); this->nodepath->curve; // not sure if np->curve is always up to date... } Geom::PathVector const &pathv = curve->get_pathvector(); |
