summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7dce740)
raw | patch | inline | side by side (parent: 7dce740)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 23 Aug 2009 01:40:44 +0000 (01:40 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 23 Aug 2009 01:40:44 +0000 (01:40 +0000) |
src/xml/rebase-hrefs.cpp | patch | blob | history |
index ec43bb178b99fc6f6cefb1f935fb794d4f67fadf..c3876725d3849c657add39369178cc10fc4f27f5 100644 (file)
--- a/src/xml/rebase-hrefs.cpp
+++ b/src/xml/rebase-hrefs.cpp
*/
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);