Skip to content

Commit 22e54ba

Browse files
committedJan 5, 2019
Fix check if ATLAS_PK parameter is there
1 parent 179be5a commit 22e54ba

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed
 

‎src/server/services/wms/qgswmsparameters.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,11 +1137,6 @@ namespace QgsWms
11371137
return label;
11381138
}
11391139

1140-
bool QgsWmsParameters::atlasPrint() const
1141-
{
1142-
return mWmsParameters.contains( QgsWmsParameter::ATLAS_PK );
1143-
}
1144-
11451140
QStringList QgsWmsParameters::atlasPk() const
11461141
{
11471142
return mWmsParameters[ QgsWmsParameter::ATLAS_PK ].toStringList();

‎src/server/services/wms/qgswmsparameters.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,8 +1149,6 @@ namespace QgsWms
11491149
*/
11501150
QString layoutParameter( const QString &id, bool &ok ) const;
11511151

1152-
//! True if ATLAS_ID parameter is set
1153-
bool atlasPrint() const;
11541152
//! Return ATLAS_ID parameter
11551153
QStringList atlasPk() const;
11561154

‎src/server/services/wms/qgswmsrenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ namespace QgsWms
379379
//atlas print?
380380
QgsLayoutAtlas *atlas = 0;
381381
QStringList atlasPk = mWmsParameters.atlasPk();
382-
if ( mWmsParameters.atlasPrint() )
382+
if ( atlasPk.size() > 0 ) //atlas print requested?
383383
{
384384
atlas = layout->atlas();
385385
if ( !atlas || !atlas->enabled() )

0 commit comments

Comments
 (0)
Please sign in to comment.