Skip to content
Permalink
Browse files

Small tweaks

  • Loading branch information
mhugent committed Jan 5, 2019
1 parent 1493574 commit e7c0f361a893daa2b657b8c4c4eb7ae749df5384
@@ -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:
@@ -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() )
@@ -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 );

0 comments on commit e7c0f36

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