summaryrefslogtreecommitdiffstats
path: root/src/pencil-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pencil-context.cpp')
-rw-r--r--src/pencil-context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index c93feb4d4..866231e96 100644
--- a/src/pencil-context.cpp
+++ b/src/pencil-context.cpp
@@ -553,7 +553,7 @@ pencil_cancel (SPPencilContext *const pc)
pc->red_curve->reset();
sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(pc->red_bpath), NULL);
while (pc->green_bpaths) {
- gtk_object_destroy(GTK_OBJECT(pc->green_bpaths->data));
+ sp_canvas_item_destroy(SP_CANVAS_ITEM(pc->green_bpaths->data));
pc->green_bpaths = g_slist_remove(pc->green_bpaths, pc->green_bpaths->data);
}
pc->green_curve->reset();