Bug report #2543
Qgis crashes in QgsMapCanvas::setLayerSet
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | Marco Hugentobler | ||
Category: | Map Canvas | ||
Affected QGIS version: | Regression?: | No | |
Operating System: | All | Easy fix?: | No |
Pull Request or Patch supplied: | Resolution: | fixed | |
Crashes QGIS or corrupts data: | Copied to github as #: | 12603 |
Description
To reproduce:
1. Paste the following code into the python console.
from qgis.utils import iface from qgis.gui import [[QgsMapCanvasLayer]] from ftools_utils import getMapLayerByName iface.mapCanvas().setLayerSet([]) iface.mapCanvas().setLayerSet([QgsMapCanvasLayer(getMapLayerByName("non-existent layer"))])
2. Behold your desktop background image
Associated revisions
fix #2543
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13047 c8812cc2-4d05-0410-92ff-de0c093fc19c
fix #2543
git-svn-id: http://svn.osgeo.org/qgis/trunk@13047 c8812cc2-4d05-0410-92ff-de0c093fc19c
History
#1 Updated by Jürgen Fischer over 14 years ago
- Resolution set to fixed
- Status changed from Open to Closed
fixed in 3b1e66b8 (SVN r13048).