Skip to content

Commit

Permalink
Small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jan 5, 2019
1 parent 1493574 commit e7c0f36
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src/server/services/wms/qgswmsparameters.h
Expand Up @@ -1149,7 +1149,10 @@ namespace QgsWms
*/
QString layoutParameter( const QString &id, bool &ok ) const;

//! Returns the ATLAS_PK parameter
/**
* Returns the ATLAS_PK parameter
* \since QGIS 3.6
*/
QStringList atlasPk() const;

private:
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -379,7 +379,7 @@ namespace QgsWms
//atlas print?
QgsLayoutAtlas *atlas = 0;
QStringList atlasPk = mWmsParameters.atlasPk();
if ( atlasPk.size() > 0 ) //atlas print requested?
if ( !atlasPk.isEmpty() ) //atlas print requested?
{
atlas = layout->atlas();
if ( !atlas || !atlas->enabled() )
Expand Down
10 changes: 5 additions & 5 deletions src/server/services/wms/qgswmsrenderer.h
Expand Up @@ -283,11 +283,11 @@ namespace QgsWms
QgsRectangle featureInfoSearchRect( QgsVectorLayer *ml, const QgsMapSettings &ms, const QgsRenderContext &rct, const QgsPointXY &infoPoint ) const;

/*
* Configure the print layout for the GetPrint request
* @param c the print layout
* @param mapSettings the map settings
* @param atlasPrint true if atlas is used for printing
* @return true in case of success
* Configures the print layout for the GetPrint request
*\param c the print layout
*\param mapSettings the map settings
*\param atlasPrint true if atlas is used for printing
*\returns true in case of success
* */
bool configurePrintLayout( QgsPrintLayout *c, const QgsMapSettings &mapSettings, bool atlasPrint = false );

Expand Down

0 comments on commit e7c0f36

Please sign in to comment.