[QGIS-trac] [Quantum GIS] #2543: Qgis crashes in
QgsMapCanvas::setLayerSet
Quantum GIS
qgis at qgis.org
Thu Mar 11 07:41:22 EST 2010
#2543: Qgis crashes in QgsMapCanvas::setLayerSet
---------------------------------------------------------+------------------
Reporter: audun | Owner: mhugent
Type: bug | Status: new
Priority: critical: causes crash or data corruption | Milestone: Version 1.5.0
Component: MapCanvas | Version: HEAD
Keywords: | Platform_version:
Platform: All | Must_fix: Yes
Status_info: 0 |
---------------------------------------------------------+------------------
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
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2543>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list