diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2015-09-12 06:40:47 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2015-09-12 06:40:47 +0000 |
| commit | 8bd8486dc468d6c41b84013c60d9592146851ff8 (patch) | |
| tree | 075a08c1ad67f74e0012296ed5721aab116abf86 /src/ui/dialog/export.cpp | |
| parent | fixes bug:1492711 in bspline and fillet chamfer (diff) | |
| download | inkscape-8bd8486dc468d6c41b84013c60d9592146851ff8.tar.gz inkscape-8bd8486dc468d6c41b84013c60d9592146851ff8.zip | |
Export. Fix for bug #170295 (default export image name for not-saved drawings).
Fixed bugs:
- https://launchpad.net/bugs/170295
(bzr r14357)
Diffstat (limited to '')
| -rw-r--r-- | src/ui/dialog/export.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/dialog/export.cpp b/src/ui/dialog/export.cpp index 1edfdfe80..59fab7771 100644 --- a/src/ui/dialog/export.cpp +++ b/src/ui/dialog/export.cpp @@ -474,7 +474,14 @@ void Export::set_default_filename () { doc_export_name = filename_entry.get_text(); } + else if ( SP_ACTIVE_DOCUMENT ) + { + Glib::ustring filename = create_filepath_from_id (_("bitmap"), filename_entry.get_text()); + filename_entry.set_text(filename); + filename_entry.set_position(filename.length()); + doc_export_name = filename_entry.get_text(); + } } #if WITH_GTKMM_3_0 |
