summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordmitry.zhulanov@gmail.com <>2017-06-03 13:40:10 +0000
committerdmitry.zhulanov@gmail.com <>2017-06-03 13:40:10 +0000
commitde3945431b7222ed127ed59cdae8990640b79170 (patch)
tree311501102442c46b0788f3c34caf79debc38b5f6
parenthandle svg documents relative to .yaml path (diff)
downloadinkscape-de3945431b7222ed127ed59cdae8990640b79170.tar.gz
inkscape-de3945431b7222ed127ed59cdae8990640b79170.zip
abort Inkscape if XFileOpen command fails
Fixed bugs: - https://launchpad.net/bugs/1695606 (bzr r15700.1.5)
-rw-r--r--src/main-cmdlinexact.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main-cmdlinexact.cpp b/src/main-cmdlinexact.cpp
index 9e7231194..9827378b2 100644
--- a/src/main-cmdlinexact.cpp
+++ b/src/main-cmdlinexact.cpp
@@ -119,7 +119,7 @@ void xFileOpen( const Glib::ustring &uri )
if (!Inkscape::IO::file_test(document_filename.c_str(), (GFileTest)(G_FILE_TEST_EXISTS))) {
printf("document is not exists: %s\n", document_filename.c_str());
- return;
+ exit(1);
}
if (s_verbose) {