summaryrefslogtreecommitdiffstats
path: root/src/xml/rebase-hrefs.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2009-08-23 01:40:44 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2009-08-23 01:40:44 +0000
commitd8f681faf74d46b77fed976d16c52ac7404517d1 (patch)
tree819640b9ecd7a43f3d1b49905da01cd70200c727 /src/xml/rebase-hrefs.cpp
parentfix half-smooth nodes updating when next to a line but with curve code (diff)
downloadinkscape-d8f681faf74d46b77fed976d16c52ac7404517d1.tar.gz
inkscape-d8f681faf74d46b77fed976d16c52ac7404517d1.zip
patch from 416549
(bzr r8522)
Diffstat (limited to 'src/xml/rebase-hrefs.cpp')
-rw-r--r--src/xml/rebase-hrefs.cpp3
1 files changed, 3 insertions, 0 deletions
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);