summaryrefslogtreecommitdiffstats
path: root/src/io/sys.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-04-04 17:38:59 +0000
committerJabiertxo Arraiza Zenotz <jtx@jtx.marker.es>2013-04-04 17:38:59 +0000
commit96aa3562f824356240deaf45d96546d9f62bbca5 (patch)
treee8f346c8762bede5d6bae8f2ac8aad81ab82eee6 /src/io/sys.cpp
parentChanging width only to selected nodes (diff)
parentFix for Bug #1163759 (Mouse selection ignores transform). (diff)
downloadinkscape-96aa3562f824356240deaf45d96546d9f62bbca5.tar.gz
inkscape-96aa3562f824356240deaf45d96546d9f62bbca5.zip
Update to trunk
(bzr r11950.1.82)
Diffstat (limited to 'src/io/sys.cpp')
-rw-r--r--src/io/sys.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/io/sys.cpp b/src/io/sys.cpp
index 60e850c96..94175176a 100644
--- a/src/io/sys.cpp
+++ b/src/io/sys.cpp
@@ -227,8 +227,10 @@ bool Inkscape::IO::file_is_writable( char const *utf8name)
}
if ( filename ) {
struct stat st;
- if(g_lstat (filename, &st) == 0) {
- success = ((st.st_mode & S_IWRITE) != 0);
+ if (g_file_test (filename, G_FILE_TEST_EXISTS)){
+ if (g_lstat (filename, &st) == 0) {
+ success = ((st.st_mode & S_IWRITE) != 0);
+ }
}
g_free(filename);
filename = NULL;