diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-08-28 20:45:29 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-08-28 20:45:29 +0000 |
| commit | 9f003c8e1f28914b506c3d18487c76d3d0108160 (patch) | |
| tree | a11cc8389e6a7a3460fc920e5f9ed177d757449b /src/inkscape.cpp | |
| parent | Fix snapping of spirals (diff) | |
| download | inkscape-9f003c8e1f28914b506c3d18487c76d3d0108160.tar.gz inkscape-9f003c8e1f28914b506c3d18487c76d3d0108160.zip | |
fix crash on trying to autosave with no documents (e.g. when inkscape was given a wrong filename on the command line and hangs in the file-not-found dialog)
(bzr r6724)
Diffstat (limited to 'src/inkscape.cpp')
| -rw-r--r-- | src/inkscape.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp index 16813e46b..10857e94a 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -306,6 +306,10 @@ typedef int uid_t; */ static gint inkscape_autosave(gpointer) { + if (!inkscape->documents) { // nothing to autosave + return TRUE; + } + // Use UID for separating autosave-documents between users if directory is multiuser uid_t uid = getuid(); |
