From ed72a9f7a5d8bf4b20b4a815f5b59dcfec1365bc Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Sun, 29 Jan 2017 15:03:48 +0100 Subject: [Bug #1659347] Windows: '/' in relative image links rewritten as '\' on save. Fixed bugs: - https://launchpad.net/bugs/1659347 (bzr r15459) --- src/xml/rebase-hrefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xml') diff --git a/src/xml/rebase-hrefs.cpp b/src/xml/rebase-hrefs.cpp index 7e3d4fa7e..a34df09a5 100644 --- a/src/xml/rebase-hrefs.cpp +++ b/src/xml/rebase-hrefs.cpp @@ -276,7 +276,7 @@ void Inkscape::XML::rebase_hrefs(SPDocument *const doc, gchar const *const new_b #ifdef WIN32 /* Native Windows path separators are replaced with / so that the href * also works on Gnu/Linux and OSX */ - std::replace(href.begin(), href.end(), '\\', '/'); + std::replace(new_href.begin(), new_href.end(), '\\', '/'); #endif ir->setAttribute("xlink:href", new_href.c_str()); } else { -- cgit v1.2.3