From: cilix42 Date: Wed, 2 Jul 2008 15:17:33 +0000 (+0000) Subject: Don't dereference NULL knotholder; fixes instant crash, but using the handles still... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bfb16e61b5a856f45977d41f2751b639b332c4f2;p=inkscape.git Don't dereference NULL knotholder; fixes instant crash, but using the handles still results in a crash :( --- 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(); }