From bfb16e61b5a856f45977d41f2751b639b332c4f2 Mon Sep 17 00:00:00 2001 From: cilix42 Date: Wed, 2 Jul 2008 15:17:33 +0000 Subject: [PATCH] Don't dereference NULL knotholder; fixes instant crash, but using the handles still results in a crash :( --- src/object-edit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/object-edit.cpp b/src/object-edit.cpp index 8f9bf378c..9245166ca 100644 --- a/src/object-edit.cpp +++ b/src/object-edit.cpp @@ -88,6 +88,7 @@ sp_item_knot_holder(SPItem *item, SPDesktop *desktop) knotholder = new FlowtextKnotHolder(desktop, SP_FLOWTEXT(item)->get_frame(NULL), NULL); } else if ((SP_OBJECT(item)->style->fill.isPaintserver()) && SP_IS_PATTERN(SP_STYLE_FILL_SERVER(SP_OBJECT(item)->style))) { + knotholder = new KnotHolder(desktop, item, NULL); knotholder->add_pattern_knotholder(); } -- 2.30.2