Skip to content

Commit 489fd66

Browse files
elpasonyalldawson
authored andcommittedMay 28, 2019
Use completeBaseName for exported atlas path
1 parent 17fd918 commit 489fd66

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
 

‎src/core/layout/qgslayoutexporter.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -343,14 +343,8 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToImage( const QString
343343

344344
PageExportDetails pageDetails;
345345
pageDetails.directory = fi.path();
346-
pageDetails.baseName = fi.baseName();
346+
pageDetails.baseName = fi.completeBaseName();
347347
pageDetails.extension = fi.suffix();
348-
// Deal with multiple dots, issue GH-29980
349-
const auto completeSuffix { fi.completeSuffix() };
350-
if ( completeSuffix != pageDetails.extension )
351-
{
352-
pageDetails.baseName = pageDetails.baseName + '.' + completeSuffix.left( completeSuffix.length() - 1 - pageDetails.extension.length() );
353-
}
354348

355349
LayoutContextPreviewSettingRestorer restorer( mLayout );
356350
( void )restorer;

0 commit comments

Comments
 (0)
Please sign in to comment.