Skip to content
Permalink
Browse files

[composer] Fix incorrect default svg filename in some cases

  • Loading branch information
nyalldawson committed Sep 25, 2015
1 parent 66fbe48 commit dce9da12405b0d574152e34c4abaae3ffb9705f8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/composer/qgscomposer.cpp
@@ -2432,7 +2432,7 @@ void QgsComposer::exportCompositionAsSVG( QgsComposer::OutputMode mode )
QString lastUsedFile = settings.value( "/UI/lastSaveAsSvgFile", "qgis.svg" ).toString();
QFileInfo file( lastUsedFile );

if ( atlasMap->enabled() )
if ( atlasMap->enabled() && mComposition->atlasMode() == QgsComposition::PreviewAtlas )
{
outputFileName = QDir( file.path() ).filePath( atlasMap->currentFilename() ) + ".svg";
}

0 comments on commit dce9da1

Please sign in to comment.
You can’t perform that action at this time.