diff options
| author | Liam P. White <inkscapebrony@gmail.com> | 2014-08-07 00:40:19 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebrony@gmail.com> | 2014-08-07 00:40:19 +0000 |
| commit | 2029349f5291ae10048202732a89f34c0a179130 (patch) | |
| tree | a8bf0a1a0fb4fa8ef9777f34250e598a5b272fb3 /src/knot.cpp | |
| parent | Update to trunk r13497 (diff) | |
| download | inkscape-2029349f5291ae10048202732a89f34c0a179130.tar.gz inkscape-2029349f5291ae10048202732a89f34c0a179130.zip | |
Add in some debugging code that will complain when deleted knots are accessed by snap handler
(bzr r13341.1.120)
Diffstat (limited to 'src/knot.cpp')
| -rw-r--r-- | src/knot.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/knot.cpp b/src/knot.cpp index 2f8f55a2e..6205af26a 100644 --- a/src/knot.cpp +++ b/src/knot.cpp @@ -21,6 +21,7 @@ #include "desktop.h" #include "desktop-handles.h" #include "knot.h" +#include "knot-ptr.h" #include "document.h" #include "document-undo.h" #include "preferences.h" @@ -118,6 +119,7 @@ SPKnot::SPKnot(SPDesktop *desktop, gchar const *tip) this->_event_handler_id = g_signal_connect(G_OBJECT(this->item), "event", G_CALLBACK(sp_knot_handler), this); + knot_created_callback(this); } SPKnot::~SPKnot() { @@ -165,6 +167,7 @@ SPKnot::~SPKnot() { // FIXME: cannot snap to destroyed knot (lp:1309050) //sp_event_context_discard_delayed_snap_event(this->desktop->event_context); + knot_deleted_callback(this); } void SPKnot::startDragging(Geom::Point const &p, gint x, gint y, guint32 etime) { |
