File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class CORE_EXPORT QgsFeatureRequest
77
77
explicit QgsFeatureRequest ( QgsFeatureId fid );
78
78
// ! construct a request with rectangle filter
79
79
explicit QgsFeatureRequest ( const QgsRectangle& rect );
80
-
80
+ // ! copy constructor
81
81
QgsFeatureRequest ( const QgsFeatureRequest& rh );
82
82
83
83
FilterType filterType () const { return mFilter ; }
Original file line number Diff line number Diff line change @@ -274,10 +274,10 @@ QgsFeatureIterator QgsVectorLayerCache::getFeatures( const QgsFeatureRequest &fe
274
274
if ( requiresWriterIt && mLayer ->dataProvider () )
275
275
{
276
276
// No index was able to satisfy the request
277
- QgsFeatureRequest myRequest = QgsFeatureRequest ( myRequest );
277
+ QgsFeatureRequest myRequest = QgsFeatureRequest ( featureRequest );
278
278
279
279
// Make sure if we cache the geometry, it gets fetched
280
- if ( mCacheGeometry )
280
+ if ( mCacheGeometry && mLayer -> hasGeometryType () )
281
281
myRequest.setFlags ( featureRequest.flags () & ~QgsFeatureRequest::NoGeometry );
282
282
283
283
// Make sure, all the cached attributes are requested as well
You can’t perform that action at this time.
0 commit comments