diff options
| author | Peter Moulder <peter.moulder@monash.edu> | 2007-06-21 09:05:40 +0000 |
|---|---|---|
| committer | pjrm <pjrm@users.sourceforge.net> | 2007-06-21 09:05:40 +0000 |
| commit | 0f4eb09b61ba2b30a349fa11014176df2c0ace5f (patch) | |
| tree | a841e587d4815190dd08ec07916defedad86977a /src/extension/input.cpp | |
| parent | Committed patch 170667 (diff) | |
| download | inkscape-0f4eb09b61ba2b30a349fa11014176df2c0ace5f.tar.gz inkscape-0f4eb09b61ba2b30a349fa11014176df2c0ace5f.zip | |
Handle the case of gnome_vfs_init failing. (Fixes Debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=415640.)
(bzr r3082)
Diffstat (limited to 'src/extension/input.cpp')
| -rw-r--r-- | src/extension/input.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/extension/input.cpp b/src/extension/input.cpp index 94b0f6ab4..e17c690aa 100644 --- a/src/extension/input.cpp +++ b/src/extension/input.cpp @@ -153,16 +153,7 @@ Input::open (const gchar *uri) } timer->touch(); - SPDocument * doc = NULL; - -#ifdef WITH_GNOME_VFS - doc = imp->open(this, uri); -#else - if (Inkscape::IO::file_test(uri, G_FILE_TEST_EXISTS)) { - doc = imp->open(this, uri); - } -#endif - + SPDocument *const doc = imp->open(this, uri); if (doc != NULL) { Inkscape::XML::Node * repr = sp_document_repr_root(doc); bool saved = sp_document_get_undo_sensitive(doc); |
