From c57f5f4adf5e749634b1fbe3e60e40ab580019b3 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Thu, 8 Jan 2009 05:37:37 +0000 Subject: switch to using shape_editor, instead of separate knotholders and listeners; fixes a lot of crashes, simplifies code (bzr r7097) --- src/vanishing-point.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/vanishing-point.cpp') diff --git a/src/vanishing-point.cpp b/src/vanishing-point.cpp index c57232c74..10f80fef1 100644 --- a/src/vanishing-point.cpp +++ b/src/vanishing-point.cpp @@ -21,6 +21,7 @@ #include "event-context.h" #include "xml/repr.h" #include "perspective-line.h" +#include "shape-editor.h" #include "knotholder.h" // FIXME: can we avoid direct access to KnotHolder::update_knots? @@ -614,8 +615,8 @@ VPDrag::updateBoxHandles () SPEventContext *ec = inkscape_active_event_context(); g_assert (ec != NULL); - if (ec->shape_knot_holder != NULL) { - ec->shape_knot_holder->update_knots(); + if (ec->shape_editor != NULL) { + ec->shape_editor->update_knotholder(); } } -- cgit v1.2.3