Skip to content

Commit

Permalink
QgsLayoutExporter: avoid missing argument error
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Aug 16, 2024
1 parent 608ae96 commit ff5747b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/layout/qgslayoutexporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToImage( QgsAbstractLay
if ( total > 0 )
feedback->setProperty( "progress", QObject::tr( "Exporting %1 of %2" ).arg( i + 1 ).arg( total ) );
else
feedback->setProperty( "progress", QObject::tr( "Exporting section %1" ).arg( i + 1 ).arg( total ) );
feedback->setProperty( "progress", QObject::tr( "Exporting section %1" ).arg( i + 1 ) );
feedback->setProgress( step * i );
}
if ( feedback && feedback->isCanceled() )
Expand Down Expand Up @@ -863,7 +863,7 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToPdfs( QgsAbstractLayo
if ( total > 0 )
feedback->setProperty( "progress", QObject::tr( "Exporting %1 of %2" ).arg( i + 1 ).arg( total ) );
else
feedback->setProperty( "progress", QObject::tr( "Exporting section %1" ).arg( i + 1 ).arg( total ) );
feedback->setProperty( "progress", QObject::tr( "Exporting section %1" ).arg( i + 1 ) );
feedback->setProgress( step * i );
}
if ( feedback && feedback->isCanceled() )
Expand Down Expand Up @@ -959,7 +959,7 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::print( QgsAbstractLayoutItera
if ( total > 0 )
feedback->setProperty( "progress", QObject::tr( "Printing %1 of %2" ).arg( i + 1 ).arg( total ) );
else
feedback->setProperty( "progress", QObject::tr( "Printing section %1" ).arg( i + 1 ).arg( total ) );
feedback->setProperty( "progress", QObject::tr( "Printing section %1" ).arg( i + 1 ) );
feedback->setProgress( step * i );
}
if ( feedback && feedback->isCanceled() )
Expand Down Expand Up @@ -1216,7 +1216,7 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToSvg( QgsAbstractLayou
if ( total > 0 )
feedback->setProperty( "progress", QObject::tr( "Exporting %1 of %2" ).arg( i + 1 ).arg( total ) );
else
feedback->setProperty( "progress", QObject::tr( "Exporting section %1" ).arg( i + 1 ).arg( total ) );
feedback->setProperty( "progress", QObject::tr( "Exporting section %1" ).arg( i + 1 ) );

feedback->setProgress( step * i );
}
Expand Down

0 comments on commit ff5747b

Please sign in to comment.