Skip to content

Commit

Permalink
Tolerance fixed in GetFeatureInfo for lines
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Oct 15, 2018
1 parent 6fce785 commit 075d53f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -2333,7 +2333,8 @@ namespace QgsWms
}
else if ( ml->geometryType() == QgsWkbTypes::LineGeometry )
{
if ( ! mWmsParameters.lineTolerance().isEmpty() )
if ( ! mWmsParameters.lineTolerance().isEmpty()
&& mWmsParameters.lineToleranceAsInt() > 0 )
{
mapUnitTolerance = mWmsParameters.lineToleranceAsInt() * rct.mapToPixel().mapUnitsPerPixel();
}
Expand Down

0 comments on commit 075d53f

Please sign in to comment.