From 317ffb463ad8b54139e8c67381306db52f28f3bd Mon Sep 17 00:00:00 2001 From: Martin Owens Date: Thu, 9 Jan 2014 22:38:38 -0500 Subject: Give the selection id a default just in case every selected item has no id. Fixes crash in bug #1257417 Fixed bugs: - https://launchpad.net/bugs/1257417 (bzr r12910) --- src/ui/dialog/export.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/dialog/export.cpp') diff --git a/src/ui/dialog/export.cpp b/src/ui/dialog/export.cpp index e896b9840..340a3dad0 100644 --- a/src/ui/dialog/export.cpp +++ b/src/ui/dialog/export.cpp @@ -813,7 +813,7 @@ void Export::onAreaToggled () /* If we still don't have a filename -- let's build one that's nice */ if (filename.empty()) { - const gchar * id = NULL; + const gchar * id = "object"; const GSList * reprlst = sp_desktop_selection(SP_ACTIVE_DESKTOP)->reprList(); for(; reprlst != NULL; reprlst = reprlst->next) { Inkscape::XML::Node * repr = (Inkscape::XML::Node *)reprlst->data; -- cgit v1.2.3