File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -343,15 +343,26 @@ QgsComposition* QgsConfigParser::createPrintComposition( const QString& composer
343
343
}
344
344
}
345
345
346
- // get layer list from string
346
+ // get forced scale from string
347
347
if ( replacementList.size () > 2 )
348
+ {
349
+ bool conversionOk;
350
+ double scale = replacementList.at ( 2 ).toDouble ( &conversionOk );
351
+ if ( conversionOk )
352
+ {
353
+ currentMap->setNewScale ( scale );
354
+ }
355
+ }
356
+
357
+ // get layer list from string
358
+ if ( replacementList.size () > 3 )
348
359
{
349
360
QStringList layerSet;
350
- QStringList wmsLayerList = replacementList.at ( 2 ).split ( " ," );
361
+ QStringList wmsLayerList = replacementList.at ( 3 ).split ( " ," );
351
362
QStringList wmsStyleList;
352
- if ( replacementList.size () > 3 )
363
+ if ( replacementList.size () > 4 )
353
364
{
354
- wmsStyleList = replacementList.at ( 3 ).split ( " ," );
365
+ wmsStyleList = replacementList.at ( 4 ).split ( " ," );
355
366
}
356
367
357
368
for ( int i = 0 ; i < wmsLayerList.size (); ++i )
You can’t perform that action at this time.
0 commit comments