summaryrefslogtreecommitdiffstats
path: root/src/color-profile.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-04-01 17:00:00 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-04-01 17:00:00 +0000
commit208ccdf9782984702f79b8ba416e67dd1e2c2dfa (patch)
tree79d15123aa526c49c6386db6245fbfc6b7a63eaf /src/color-profile.cpp
parentupdate to trunk (diff)
parentpartial 2geom update: (diff)
downloadinkscape-208ccdf9782984702f79b8ba416e67dd1e2c2dfa.tar.gz
inkscape-208ccdf9782984702f79b8ba416e67dd1e2c2dfa.zip
update to trunk
(bzr r12588.1.32)
Diffstat (limited to 'src/color-profile.cpp')
-rw-r--r--src/color-profile.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index 2736b9a3b..ed4b9029e 100644
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -46,7 +46,7 @@
#include "document.h"
#include "preferences.h"
-#include "dom/uri.h"
+#include "uri.h"
#ifdef WIN32
#include <icm.h>
@@ -331,13 +331,17 @@ void ColorProfile::set(unsigned key, gchar const *value) {
gchar* escaped = g_uri_escape_string(this->href, "!*'();:@=+$,/?#[]", TRUE);
//g_message("docbase:%s\n", docbase);
- org::w3c::dom::URI docUri(docbase);
+ //org::w3c::dom::URI docUri(docbase);
+ Inkscape::URI docUri(docbase);
+
//# 2. Get href of icc file. we don't care if it's rel or abs
- org::w3c::dom::URI hrefUri(escaped);
+ //org::w3c::dom::URI hrefUri(escaped);
+ Inkscape::URI hrefUri(escaped);
//# 3. Resolve the href according the docBase. This follows
// the w3c specs. All absolute and relative issues are considered
- org::w3c::dom::URI cprofUri = docUri.resolve(hrefUri);
- gchar* fullname = g_uri_unescape_string(cprofUri.getNativePath().c_str(), "");
+ std::string fullpath = hrefUri.getFullPath(docUri.getFullPath(""));
+
+ gchar* fullname = g_uri_unescape_string(fullpath.c_str(), "");
this->impl->_clearProfile();
this->impl->_profHandle = cmsOpenProfileFromFile( fullname, "r" );
if ( this->impl->_profHandle ) {