summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2012-04-05 19:09:24 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2012-04-05 19:09:24 +0000
commit4c88966ad38b4365401f45401b3cab38c9eea86e (patch)
tree87d1adac5777d2d2940198de70cf6bc323720903 /src/file.cpp
parentfix crash (bug #973174) (diff)
downloadinkscape-4c88966ad38b4365401f45401b3cab38c9eea86e.tar.gz
inkscape-4c88966ad38b4365401f45401b3cab38c9eea86e.zip
add test code for bug #967416
(bzr r11159)
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/file.cpp b/src/file.cpp
index 0657f0b10..2ce532f03 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -643,6 +643,17 @@ file_save(Gtk::Window &parentWindow, SPDocument *doc, const Glib::ustring &uri,
return FALSE;
}
+ if (SP_ACTIVE_DESKTOP) {
+ if (! SP_ACTIVE_DESKTOP->event_log) {
+ g_message("file_save: ->event_log == NULL. please report to bug #967416");
+ }
+ if (! SP_ACTIVE_DESKTOP->messageStack()) {
+ g_message("file_save: ->messageStack() == NULL. please report to bug #967416");
+ }
+ } else {
+ g_message("file_save: SP_ACTIVE_DESKTOP == NULL. please report to bug #967416");
+ }
+
SP_ACTIVE_DESKTOP->event_log->rememberFileSave();
SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Document saved."));
return true;