From 606ebb35498c3d750bb2906954195baaa0fbcad6 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Sun, 9 Aug 2009 14:23:52 +0000 Subject: Fix remaining glitches in the behaviour of the Save dialogs (w.r.t. remembering the last file type and folder). As part of the cleanup inkscape:output_extension was removed, too. (bzr r8454) --- src/dialogs/export.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/dialogs/export.cpp') diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp index 0cde76657..835003e5e 100644 --- a/src/dialogs/export.cpp +++ b/src/dialogs/export.cpp @@ -540,8 +540,7 @@ sp_export_dialog (void) 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) { -- cgit v1.2.3