Code

patch from 416549
authorbuliabyak <buliabyak@users.sourceforge.net>
Sun, 23 Aug 2009 01:40:44 +0000 (01:40 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sun, 23 Aug 2009 01:40:44 +0000 (01:40 +0000)
src/xml/rebase-hrefs.cpp

index ec43bb178b99fc6f6cefb1f935fb794d4f67fadf..c3876725d3849c657add39369178cc10fc4f27f5 100644 (file)
@@ -201,6 +201,9 @@ Inkscape::XML::calc_abs_doc_base(gchar const *const doc_base)
  */
 void Inkscape::XML::rebase_hrefs(SPDocument *const doc, gchar const *const new_base, bool const spns)
 {
+    if (!doc->base)
+        return;
+
     gchar *const old_abs_base = calc_abs_doc_base(doc->base);
     gchar *const new_abs_base = calc_abs_doc_base(new_base);