Skip to content

Commit 88b8369

Browse files
committed
[composer] Always update filename when atlas feature changes, otherwise exporting to images when 'single file' checkbox is ticked results in no output
1 parent d104045 commit 88b8369

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/composer/qgsatlascomposition.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ void QgsAtlasComposition::prepareMap( QgsComposerMap* map )
451451
break;
452452
}
453453

454-
if ( map->atlasScalingMode() == QgsComposerMap::Fixed || isPointLayer )
454+
if ( map->atlasScalingMode() == QgsComposerMap::Fixed || isPointLayer )
455455
{
456456
// only translate, keep the original scale (i.e. width x height)
457457

@@ -683,7 +683,7 @@ void QgsAtlasComposition::updateFilenameExpression()
683683

684684
const QgsFields& fields = mCoverageLayer->pendingFields();
685685

686-
if ( !mSingleFile && mFilenamePattern.size() > 0 )
686+
if ( mFilenamePattern.size() > 0 )
687687
{
688688
mFilenameExpr = std::auto_ptr<QgsExpression>( new QgsExpression( mFilenamePattern ) );
689689
// expression used to evaluate each filename
@@ -708,7 +708,7 @@ void QgsAtlasComposition::updateFilenameExpression()
708708
void QgsAtlasComposition::evalFeatureFilename()
709709
{
710710
//generate filename for current atlas feature
711-
if ( !mSingleFile && mFilenamePattern.size() > 0 )
711+
if ( mFilenamePattern.size() > 0 )
712712
{
713713
QVariant filenameRes = mFilenameExpr->evaluate( &mCurrentFeature, mCoverageLayer->pendingFields() );
714714
if ( mFilenameExpr->hasEvalError() )

0 commit comments

Comments
 (0)