Code

Don't dereference NULL knotholder; fixes instant crash, but using the handles still...
authorcilix42 <cilix42@users.sourceforge.net>
Wed, 2 Jul 2008 15:17:33 +0000 (15:17 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Wed, 2 Jul 2008 15:17:33 +0000 (15:17 +0000)
src/object-edit.cpp

index 8f9bf378c706353ed5ee15ad77f739b88f977329..9245166ca79de6116c044ef44fd2ac7cb6afd8c7 100644 (file)
@@ -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();
     }