diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp
index 0cde76657c99fd1a861f9034693744d39fac3061..835003e5e621737df23b2c948820b879216611b9 100644 (file)
--- a/src/dialogs/export.cpp
+++ b/src/dialogs/export.cpp
gchar *name;
SPDocument * doc = SP_ACTIVE_DOCUMENT;
const gchar *uri = SP_DOCUMENT_URI (doc);
- Inkscape::XML::Node * repr = sp_document_repr_root(doc);
- const gchar * text_extension = repr->attribute("inkscape:output_extension");
+ const gchar *text_extension = Inkscape::Preferences::get()->getString("/dialogs/save_as/default").c_str();
Inkscape::Extension::Output * oextension = NULL;
if (text_extension != NULL) {