Skip to content

Commit f4aa1e0

Browse files
committed
[BUFIX][Server] Regression in GetPrint GRID parameters
1 parent e23a3d0 commit f4aa1e0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/server/qgswmsconfigparser.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ QgsComposition* QgsWMSConfigParser::createPrintComposition( const QString& compo
209209
//grid space x / y
210210
currentMap->grid()->setIntervalX( parameterMap.value( mapId + ":GRID_INTERVAL_X" ).toDouble() );
211211
currentMap->grid()->setIntervalY( parameterMap.value( mapId + ":GRID_INTERVAL_Y" ).toDouble() );
212+
currentMap->grid()->setEnabled( currentMap->grid()->intervalX() != 0.0 && currentMap->grid()->intervalY() != 0.0 );
212213
}
213214
//update legend
214215
// if it has an auto-update model

0 commit comments

Comments
 (0)