From: mental Date: Mon, 9 Apr 2007 07:44:50 +0000 (+0000) Subject: fix crash temporarily until next refactoring phase X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1ed1764f573921b7f9d210a3fcca322234c36480;p=inkscape.git fix crash temporarily until next refactoring phase --- diff --git a/src/sp-feblend.cpp b/src/sp-feblend.cpp index 7192f3bc6..7448dd4ab 100644 --- a/src/sp-feblend.cpp +++ b/src/sp-feblend.cpp @@ -150,7 +150,7 @@ sp_feBlend_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-fecolormatrix.cpp b/src/sp-fecolormatrix.cpp index 3ee184a72..747ceeb4f 100644 --- a/src/sp-fecolormatrix.cpp +++ b/src/sp-fecolormatrix.cpp @@ -150,7 +150,7 @@ sp_feColorMatrix_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-fecomponenttransfer.cpp b/src/sp-fecomponenttransfer.cpp index 941431f6d..990951192 100644 --- a/src/sp-fecomponenttransfer.cpp +++ b/src/sp-fecomponenttransfer.cpp @@ -150,7 +150,7 @@ sp_feComponentTransfer_write(SPObject *object, Inkscape::XML::Node *repr, guint // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-fecomposite.cpp b/src/sp-fecomposite.cpp index cb65cc812..86839aab5 100644 --- a/src/sp-fecomposite.cpp +++ b/src/sp-fecomposite.cpp @@ -150,7 +150,7 @@ sp_feComposite_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-feconvolvematrix.cpp b/src/sp-feconvolvematrix.cpp index 0a255b067..fe127900b 100644 --- a/src/sp-feconvolvematrix.cpp +++ b/src/sp-feconvolvematrix.cpp @@ -150,7 +150,7 @@ sp_feConvolveMatrix_write(SPObject *object, Inkscape::XML::Node *repr, guint fla // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-fediffuselighting.cpp b/src/sp-fediffuselighting.cpp index e9720ab16..d48c02c96 100644 --- a/src/sp-fediffuselighting.cpp +++ b/src/sp-fediffuselighting.cpp @@ -150,7 +150,7 @@ sp_feDiffuseLighting_write(SPObject *object, Inkscape::XML::Node *repr, guint fl // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-fedisplacementmap.cpp b/src/sp-fedisplacementmap.cpp index 138ae6e0e..8b861b85d 100644 --- a/src/sp-fedisplacementmap.cpp +++ b/src/sp-fedisplacementmap.cpp @@ -150,7 +150,7 @@ sp_feDisplacementMap_write(SPObject *object, Inkscape::XML::Node *repr, guint fl // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-feflood.cpp b/src/sp-feflood.cpp index 5f4050a26..924fb8f64 100644 --- a/src/sp-feflood.cpp +++ b/src/sp-feflood.cpp @@ -150,7 +150,7 @@ sp_feFlood_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-feimage.cpp b/src/sp-feimage.cpp index e1bbe86cf..6c0aa9e4f 100644 --- a/src/sp-feimage.cpp +++ b/src/sp-feimage.cpp @@ -151,7 +151,7 @@ sp_feImage_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-femerge.cpp b/src/sp-femerge.cpp index 4436c7d1e..2b262db0d 100644 --- a/src/sp-femerge.cpp +++ b/src/sp-femerge.cpp @@ -150,7 +150,7 @@ sp_feMerge_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-femorphology.cpp b/src/sp-femorphology.cpp index cdfd0bd38..78b7bbaf4 100644 --- a/src/sp-femorphology.cpp +++ b/src/sp-femorphology.cpp @@ -150,7 +150,7 @@ sp_feMorphology_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-feoffset.cpp b/src/sp-feoffset.cpp index 72f352a72..2980f9ef8 100644 --- a/src/sp-feoffset.cpp +++ b/src/sp-feoffset.cpp @@ -150,7 +150,7 @@ sp_feOffset_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-fespecularlighting.cpp b/src/sp-fespecularlighting.cpp index ce251b6fa..cc9837041 100644 --- a/src/sp-fespecularlighting.cpp +++ b/src/sp-fespecularlighting.cpp @@ -150,7 +150,7 @@ sp_feSpecularLighting_write(SPObject *object, Inkscape::XML::Node *repr, guint f // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-fetile.cpp b/src/sp-fetile.cpp index bb6893cbc..03967ce05 100644 --- a/src/sp-fetile.cpp +++ b/src/sp-fetile.cpp @@ -150,7 +150,7 @@ sp_feTile_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-feturbulence.cpp b/src/sp-feturbulence.cpp index ab46433d1..f1f99a613 100644 --- a/src/sp-feturbulence.cpp +++ b/src/sp-feturbulence.cpp @@ -150,7 +150,7 @@ sp_feTurbulence_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-filter.cpp b/src/sp-filter.cpp index ef5d71483..a27dfd124 100644 --- a/src/sp-filter.cpp +++ b/src/sp-filter.cpp @@ -269,7 +269,7 @@ sp_filter_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) SPFilter *filter = SP_FILTER(object); if (!repr) { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } if ((flags & SP_OBJECT_WRITE_ALL) || filter->filterUnits_set) { diff --git a/src/sp-gaussian-blur.cpp b/src/sp-gaussian-blur.cpp index 0fcc6d779..7410587e3 100644 --- a/src/sp-gaussian-blur.cpp +++ b/src/sp-gaussian-blur.cpp @@ -157,7 +157,7 @@ sp_gaussianBlur_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) // is this sane? // repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-metadata.cpp b/src/sp-metadata.cpp index 275a5be1d..11bc994f7 100644 --- a/src/sp-metadata.cpp +++ b/src/sp-metadata.cpp @@ -192,7 +192,7 @@ sp_metadata_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) if (repr) { repr->mergeFrom(SP_OBJECT_REPR (object), "id"); } else { - repr = SP_OBJECT_REPR (object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR (object)->duplicate(NULL); // FIXME } } diff --git a/src/sp-skeleton.cpp b/src/sp-skeleton.cpp index e9f69e266..bd0d7e827 100644 --- a/src/sp-skeleton.cpp +++ b/src/sp-skeleton.cpp @@ -191,7 +191,7 @@ sp_skeleton_write(SPObject *object, Inkscape::XML::Node *repr, guint flags) // is this sane? repr->mergeFrom(SP_OBJECT_REPR(object), "id"); } else { - repr = SP_OBJECT_REPR(object)->duplicate(repr->document()); + repr = SP_OBJECT_REPR(object)->duplicate(NULL); // FIXME } }