diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2017-01-29 14:03:48 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2017-01-29 14:03:48 +0000 |
| commit | ed72a9f7a5d8bf4b20b4a815f5b59dcfec1365bc (patch) | |
| tree | ac18223844d87d32e6f6b82fa551b4afa2fd52fc /src | |
| parent | Fix Bug:1659253. Thanks houz and jazzynico (diff) | |
| download | inkscape-ed72a9f7a5d8bf4b20b4a815f5b59dcfec1365bc.tar.gz inkscape-ed72a9f7a5d8bf4b20b4a815f5b59dcfec1365bc.zip | |
[Bug #1659347] Windows: '/' in relative image links rewritten as '\' on save.
Fixed bugs:
- https://launchpad.net/bugs/1659347
(bzr r15459)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xml/rebase-hrefs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
