From bb21b145819e999294e711058b26d97e0527a646 Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Tue, 18 Mar 2014 19:30:41 +0100 Subject: Fix for Bug #1291546 (Linking color profile from Document properties dialog crashes Inkscape). Fixed bugs: - https://launchpad.net/bugs/1291546 (bzr r13165) --- src/uri.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/uri.cpp') 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] != '/') { -- cgit v1.2.3