summaryrefslogtreecommitdiffstats
path: root/src/inkview.cpp
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-05-13 21:01:29 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-05-13 21:01:29 +0000
commit1fead914d382ed1173d8bc4941c8ed270fe95b08 (patch)
tree034420c241f9494ba42dcd0cfa65ac2da44c7729 /src/inkview.cpp
parentInkview: Support folders as input. (diff)
downloadinkscape-1fead914d382ed1173d8bc4941c8ed270fe95b08.tar.gz
inkscape-1fead914d382ed1173d8bc4941c8ed270fe95b08.zip
Inkview: Print warning if a file failed to load.
(bzr r15690.1.5)
Diffstat (limited to 'src/inkview.cpp')
-rw-r--r--src/inkview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inkview.cpp b/src/inkview.cpp
index f41e36cb1..5ba896a40 100644
--- a/src/inkview.cpp
+++ b/src/inkview.cpp
@@ -269,11 +269,11 @@ std::vector<Glib::ustring> get_valid_files(std::vector<Glib::ustring> filenames,
}
} else {
auto doc = SPDocument::createNewDoc(file.c_str(), TRUE, false);
-
- if(doc)
- {
+ if(doc) {
/* Append to list */
valid_files.push_back(file);
+ } else {
+ g_printerr("%s: %s\n", _("Could not open file"), file.c_str());
}
}
}