Skip to content

Commit 000e974

Browse files
committedJan 26, 2017
[BUFIX][Server] Regression in GetPrint GRID parameters
1 parent 637b585 commit 000e974

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/server/qgswmsconfigparser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ QgsComposition* QgsWMSConfigParser::createPrintComposition( const QString& compo
180180
//grid space x / y
181181
currentMap->grid()->setIntervalX( parameterMap.value( mapId + ":GRID_INTERVAL_X" ).toDouble() );
182182
currentMap->grid()->setIntervalY( parameterMap.value( mapId + ":GRID_INTERVAL_Y" ).toDouble() );
183+
currentMap->grid()->setEnabled( currentMap->grid()->intervalX() != 0.0 && currentMap->grid()->intervalY() != 0.0 );
183184
}
184185
//update legend
185186
// if it has an auto-update model

0 commit comments

Comments
 (0)
Please sign in to comment.