From 88f4b0093529c35964c39b589a0b614ad231d02c Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Wed, 4 Jun 2008 12:19:54 +0000 Subject: C++ify knotholders (bzr r5797) --- src/rect-context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rect-context.cpp') diff --git a/src/rect-context.cpp b/src/rect-context.cpp index f53a39948..18904f931 100644 --- a/src/rect-context.cpp +++ b/src/rect-context.cpp @@ -135,7 +135,7 @@ static void sp_rect_context_dispose(GObject *object) } if (ec->shape_knot_holder) { - sp_knot_holder_destroy(ec->shape_knot_holder); + delete ec->shape_knot_holder; ec->shape_knot_holder = NULL; } @@ -170,7 +170,7 @@ void sp_rect_context_selection_changed(Inkscape::Selection *selection, gpointer SPEventContext *ec = SP_EVENT_CONTEXT(rc); if (ec->shape_knot_holder) { // destroy knotholder - sp_knot_holder_destroy(ec->shape_knot_holder); + delete ec->shape_knot_holder; ec->shape_knot_holder = NULL; } -- cgit v1.2.3