From d8c9253bfa94c54b96975f010756c657b6e9bb30 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 23 Aug 2009 01:40:44 +0000 Subject: [PATCH] patch from 416549 --- src/xml/rebase-hrefs.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.30.2