Skip to content

Commit

Permalink
Use completeBaseName for exported atlas path
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed May 28, 2019
1 parent 7b915af commit 4bb39be
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/core/layout/qgslayoutexporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,8 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToImage( const QString

PageExportDetails pageDetails;
pageDetails.directory = fi.path();
pageDetails.baseName = fi.baseName();
pageDetails.baseName = fi.completeBaseName();
pageDetails.extension = fi.suffix();
// Deal with multiple dots, issue GH-29980
const auto completeSuffix { fi.completeSuffix() };
if ( completeSuffix != pageDetails.extension )
{
pageDetails.baseName = pageDetails.baseName + '.' + completeSuffix.left( completeSuffix.length() - 1 - pageDetails.extension.length() );
}

LayoutContextPreviewSettingRestorer restorer( mLayout );
( void )restorer;
Expand Down

0 comments on commit 4bb39be

Please sign in to comment.