Skip to content

Commit

Permalink
[BUGFIX][SERVER] GetFeatureInfo not evaluated for maptip context when…
Browse files Browse the repository at this point in the history
… using FILTER param

fixed #16670
  • Loading branch information
rldhont committed Jul 26, 2017
1 parent 476b584 commit b51d4ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/server/qgswmsserver.cpp
Expand Up @@ -2363,16 +2363,15 @@ int QgsWMSServer::featureInfoFromVectorLayer( QgsVectorLayer* layer,
break;
}

renderContext.expressionContext().setFeature( feature );

if ( layer->wkbType() != QGis::WKBNoGeometry && ! searchRect.isEmpty() )
{
if ( !r2 )
{
continue;
}

renderContext.expressionContext().setFeature( feature );


//check if feature is rendered at all
bool render = r2->willRenderFeature( feature, renderContext );
if ( !render )
Expand Down

0 comments on commit b51d4ef

Please sign in to comment.