From: buliabyak Date: Sun, 23 Aug 2009 01:40:44 +0000 (+0000) Subject: patch from 416549 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d8c9253bfa94c54b96975f010756c657b6e9bb30;p=inkscape.git patch from 416549 --- diff --git a/src/xml/rebase-hrefs.cpp b/src/xml/rebase-hrefs.cpp index ec43bb178..c3876725d 100644 --- a/src/xml/rebase-hrefs.cpp +++ b/src/xml/rebase-hrefs.cpp @@ -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);