Bug report #21456
python error whrn using "use layer extent" in Processing QGIS native tool
Status: | Closed | ||
---|---|---|---|
Priority: | High | ||
Assignee: | - | ||
Category: | Processing/QGIS | ||
Affected QGIS version: | 3.4.5 | Regression?: | Yes |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 29273 |
Description
AttributeError: type object 'QgsMapLayerProxyModel' has no attribute 'MeshLayer'
Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\gui\ExtentSelectionPanel.py", line 167, in useLayerExtent
dlg = LayerSelectionDialog(self)
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\gui\ExtentSelectionPanel.py", line 72, in init
QgsMapLayerProxyModel.HasGeometry | QgsMapLayerProxyModel.RasterLayer | QgsMapLayerProxyModel.MeshLayer)
AttributeError: type object 'QgsMapLayerProxyModel' has no attribute 'MeshLayer'
This has been seen when creating vector grid with the native QGIS tool.
This affects QGIS 3.4.5 but not above releases. Anyway I can't find a fix related to this bug with a "need backporting" label. This must be fixed in the LTR release too.
Associated revisions
[processing] Fix exception when picking extent from layer
Fixes #21456
History
#1 Updated by Nyall Dawson over 5 years ago
- % Done changed from 0 to 100
- Status changed from Open to Closed
Applied in changeset qgis|541f0c017824dd2d3eb99cffb6c380a31d136537.