summaryrefslogtreecommitdiffstats
path: root/src/xml/rebase-hrefs.cpp
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2009-04-18 12:34:06 +0000
committerpjrm <pjrm@users.sourceforge.net>2009-04-18 12:34:06 +0000
commit0c73cb3e22c71ae8eea9139c919d1da362d424ae (patch)
tree4f8b462307a34d8607ca15a6b571ef2b13aee33b /src/xml/rebase-hrefs.cpp
parentDutch translation update by Kris (diff)
downloadinkscape-0c73cb3e22c71ae8eea9139c919d1da362d424ae.tar.gz
inkscape-0c73cb3e22c71ae8eea9139c919d1da362d424ae.zip
Fix #358704 that I introduced with r21075.
(bzr r7733)
Diffstat (limited to 'src/xml/rebase-hrefs.cpp')
-rw-r--r--src/xml/rebase-hrefs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xml/rebase-hrefs.cpp b/src/xml/rebase-hrefs.cpp
index cfe6bef7c..ec43bb178 100644
--- a/src/xml/rebase-hrefs.cpp
+++ b/src/xml/rebase-hrefs.cpp
@@ -21,7 +21,7 @@ href_needs_rebasing(char const *const href)
{
g_return_val_if_fail(href, false);
- if (!*href) {
+ if (!*href || *href == '#') {
return false;
/* False (no change) is the right behaviour even when the base URI differs from the
* document URI: RFC 3986 defines empty string relative URL as referring to the containing