diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2012-10-28 17:31:24 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2012-10-28 17:31:24 +0000 |
| commit | 258b9b4a5dd01aceebf244522bab72f47b60ea03 (patch) | |
| tree | 799358f065e7a98316fb55c380a9450cb4025124 /src | |
| parent | add bleed/margin to pdf export (diff) | |
| download | inkscape-258b9b4a5dd01aceebf244522bab72f47b60ea03.tar.gz inkscape-258b9b4a5dd01aceebf244522bab72f47b60ea03.zip | |
Fix for Bug #1072391 (Save as copy crash).
(bzr r11848)
Diffstat (limited to 'src')
| -rw-r--r-- | src/file.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/file.cpp b/src/file.cpp index cb4ea591c..14f70fc8c 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -675,7 +675,12 @@ file_save(Gtk::Window &parentWindow, SPDocument *doc, const Glib::ustring &uri, } SP_ACTIVE_DESKTOP->event_log->rememberFileSave(); - Glib::ustring msg = Glib::ustring::format(_("Document saved."), " ", doc->getURI()); + Glib::ustring msg; + if (doc->getURI() == NULL) { + msg = Glib::ustring::format(_("Document saved.")); + } else { + msg = Glib::ustring::format(_("Document saved."), " ", doc->getURI()); + } SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::NORMAL_MESSAGE, msg.c_str()); return true; } |
