summaryrefslogtreecommitdiffstats
path: root/src/color-profile.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-04-09 10:45:20 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-04-09 10:45:20 +0000
commitf0c6ea33bcb5a03352f6276bac82d56c39c3f5fe (patch)
tree28159b96674a5c003fb36948ff04f3eaae3ec864 /src/color-profile.cpp
parentRefactor of end anchors. (diff)
parentMake extension tests compatible with VPATH builds. (diff)
downloadinkscape-f0c6ea33bcb5a03352f6276bac82d56c39c3f5fe.tar.gz
inkscape-f0c6ea33bcb5a03352f6276bac82d56c39c3f5fe.zip
update to trunk
(bzr r11950.1.326)
Diffstat (limited to 'src/color-profile.cpp')
-rw-r--r--src/color-profile.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index ed4b9029e..aa0750c00 100644
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -322,17 +322,15 @@ void ColorProfile::set(unsigned key, gchar const *value) {
}
//# 1. Get complete URI of document
gchar const *docbase = doc->getURI();
- if (!docbase)
- {
- // Normal for files that have not yet been saved.
- docbase = "";
- }
gchar* escaped = g_uri_escape_string(this->href, "!*'();:@=+$,/?#[]", TRUE);
//g_message("docbase:%s\n", docbase);
//org::w3c::dom::URI docUri(docbase);
- Inkscape::URI docUri(docbase);
+ Inkscape::URI docUri("");
+ if (docbase) { // The file has already been saved
+ docUri = Inkscape::URI::from_native_filename(docbase);
+ }
//# 2. Get href of icc file. we don't care if it's rel or abs
//org::w3c::dom::URI hrefUri(escaped);