diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-03-18 20:06:37 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-03-18 20:06:37 +0000 |
| commit | 5ea50da1809d7c851b97c448588757ec33a0145e (patch) | |
| tree | f1a669fc9d1647600ced5fa28d8e8c5af3af9cf0 /src/uri.cpp | |
| parent | update to trunk (diff) | |
| parent | Fix for Bug #1291546 (Linking color profile from Document properties dialog c... (diff) | |
| download | inkscape-5ea50da1809d7c851b97c448588757ec33a0145e.tar.gz inkscape-5ea50da1809d7c851b97c448588757ec33a0145e.zip | |
update to trunk
(bzr r11950.1.300)
Diffstat (limited to 'src/uri.cpp')
| -rw-r--r-- | src/uri.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/uri.cpp b/src/uri.cpp index e81d108c9..2eaf4ecc1 100644 --- a/src/uri.cpp +++ b/src/uri.cpp @@ -149,6 +149,9 @@ gchar *URI::to_native_filename(gchar const* uri) throw(BadURIException) * and thus redundent. Caller is expected to check against the document's path. */ const std::string URI::getFullPath(std::string const base) const { + if (!_impl->getPath()) { + return ""; + } std::string path = std::string(_impl->getPath()); // Calculate the absolute path from an available base if(!base.empty() && !path.empty() && path[0] != '/') { |
