Skip to content
Permalink
Browse files

Fix spell check noise

  • Loading branch information
nyalldawson committed Aug 31, 2020
1 parent d1bc82c commit e8a7795a933cbbc00693a44e2564aadb2170e61a
@@ -136,7 +136,7 @@ QVariantMap QgsLayoutToPdfAlgorithm::processAlgorithm( const QVariantMap &parame
settings.exportMetadata = parameterAsBool( parameters, QStringLiteral( "INCLUDE_METADATA" ), context );
settings.simplifyGeometries = parameterAsBool( parameters, QStringLiteral( "SIMPLIFY" ), context );
settings.textRenderFormat = parameterAsEnum( parameters, QStringLiteral( "TEXT_FORMAT" ), context ) == 0 ? QgsRenderContext::TextFormatAlwaysOutlines : QgsRenderContext::TextFormatAlwaysText;
settings.exportLayersAsSeperateFiles = parameterAsBool( parameters, QStringLiteral( "SEPARATE_LAYERS" ), context );
settings.exportLayersAsSeperateFiles = parameterAsBool( parameters, QStringLiteral( "SEPARATE_LAYERS" ), context ); //#spellok

if ( parameterAsBool( parameters, QStringLiteral( "DISABLE_TILED" ), context ) )
settings.flags = settings.flags | QgsLayoutRenderContext::FlagDisableTiledRasterLayerRenders;
@@ -528,7 +528,7 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToPdf( const QString &f
}

std::unique_ptr< QgsLayoutGeoPdfExporter > geoPdfExporter;
if ( settings.writeGeoPdf || settings.exportLayersAsSeperateFiles )
if ( settings.writeGeoPdf || settings.exportLayersAsSeperateFiles ) //#spellok
geoPdfExporter = qgis::make_unique< QgsLayoutGeoPdfExporter >( mLayout );

mLayout->renderContext().setFlags( settings.flags );
@@ -542,21 +542,21 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToPdf( const QString &f
mLayout->renderContext().setExportThemes( settings.exportThemes );

ExportResult result = Success;
if ( settings.writeGeoPdf || settings.exportLayersAsSeperateFiles )
if ( settings.writeGeoPdf || settings.exportLayersAsSeperateFiles ) //#spellok
{
mLayout->renderContext().setFlag( QgsLayoutRenderContext::FlagRenderLabelsByMapLayer, true );

// here we need to export layers to individual PDFs
PdfExportSettings subSettings = settings;
subSettings.writeGeoPdf = false;
subSettings.exportLayersAsSeperateFiles = false;
subSettings.exportLayersAsSeperateFiles = false; //#spellok

const QList<QGraphicsItem *> items = mLayout->items( Qt::AscendingOrder );

QList< QgsLayoutGeoPdfExporter::ComponentLayerDetail > pdfComponents;

const QDir baseDir = settings.exportLayersAsSeperateFiles ? QFileInfo( filePath ).dir() : QDir();
const QString baseFileName = settings.exportLayersAsSeperateFiles ? QFileInfo( filePath ).completeBaseName() : QString();
const QDir baseDir = settings.exportLayersAsSeperateFiles ? QFileInfo( filePath ).dir() : QDir(); //#spellok
const QString baseFileName = settings.exportLayersAsSeperateFiles ? QFileInfo( filePath ).completeBaseName() : QString(); //#spellok

auto exportFunc = [this, &subSettings, &pdfComponents, &geoPdfExporter, &settings, &baseDir, &baseFileName]( unsigned int layerId, const QgsLayoutItem::ExportLayerDetail & layerDetail )->QgsLayoutExporter::ExportResult
{
@@ -336,7 +336,7 @@ class CORE_EXPORT QgsLayoutExporter
*
* \since QGIS 3.14
*/
bool exportLayersAsSeperateFiles = false; // TODO QGIS 4 fix typo
bool exportLayersAsSeperateFiles = false; // TODO QGIS 4 fix typo //#spellok

/**
* TRUE if ISO3200 extension format georeferencing should be used.

0 comments on commit e8a7795

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