From de3945431b7222ed127ed59cdae8990640b79170 Mon Sep 17 00:00:00 2001 From: "dmitry.zhulanov@gmail.com" <> Date: Sat, 3 Jun 2017 20:40:10 +0700 Subject: abort Inkscape if XFileOpen command fails Fixed bugs: - https://launchpad.net/bugs/1695606 (bzr r15700.1.5) --- src/main-cmdlinexact.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main-cmdlinexact.cpp') 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) { -- cgit v1.2.3