diff --git a/src/core/qgsfeaturerequest.cpp b/src/core/qgsfeaturerequest.cpp index 24997e97499b..b243bbd986da 100644 --- a/src/core/qgsfeaturerequest.cpp +++ b/src/core/qgsfeaturerequest.cpp @@ -56,6 +56,9 @@ QgsFeatureRequest::QgsFeatureRequest( const QgsExpression& expr ) : mFilter( FilterExpression ) , mFilterExpression( new QgsExpression( expr.expression() ) ) , mFlags( 0 ) + , mMapCoordTransform( NULL ) + , mMapToPixel( NULL ) + , mMapToPixelTol( QgsFeatureRequest::MAPTOPIXEL_THRESHOLD_DEFAULT ) { } diff --git a/src/core/symbology-ng/qgsfillsymbollayerv2.cpp b/src/core/symbology-ng/qgsfillsymbollayerv2.cpp index 6cb689fb6bdc..c4b06f658793 100644 --- a/src/core/symbology-ng/qgsfillsymbollayerv2.cpp +++ b/src/core/symbology-ng/qgsfillsymbollayerv2.cpp @@ -681,7 +681,7 @@ void QgsGradientFillSymbolLayerV2::renderPolygon( const QPolygonF& points, QList p->translate( offset ); } - _renderPolygon( p, points, rings ); + _renderPolygon( p, points, rings, context ); if ( !mOffset.isNull() ) {