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/ui/tools/tool-base.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/ui/tools/tool-base.cpp')
| -rw-r--r-- | src/ui/tools/tool-base.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/tools/tool-base.cpp b/src/ui/tools/tool-base.cpp index f1d90f6c6..c23da87c0 100644 --- a/src/ui/tools/tool-base.cpp +++ b/src/ui/tools/tool-base.cpp @@ -58,6 +58,7 @@ #include "sp-guide.h" #include "color.h" #include "knot.h" +#include "knot-ptr.h" // globals for temporary switching to selector by space static bool selector_toggled = FALSE; @@ -1359,6 +1360,7 @@ gboolean sp_event_context_snap_watchdog_callback(gpointer data) { break; case DelayedSnapEvent::KNOT_HANDLER: { gpointer knot = dse->getItem2(); + check_if_knot_deleted(knot); if (knot && SP_IS_KNOT(knot)) { sp_knot_handler_request_position(dse->getEvent(), SP_KNOT(knot)); } |
