Opened 14 years ago

Closed 14 years ago

#2543 closed bug (fixed)

Qgis crashes in QgsMapCanvas::setLayerSet

Reported by: audun Owned by: mhugent
Priority: critical: causes crash or data corruption Milestone: Version 1.5.0
Component: MapCanvas Version: Trunk
Keywords: Cc:
Must Fix for Release: Yes Platform: All
Platform Version: Awaiting user input: no

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"))])
    
  1. Behold your desktop background image

Attachments (1)

fix.patch (430 bytes ) - added by audun 14 years ago.

Download all attachments as: .zip

Change History (2)

by audun, 14 years ago

Attachment: fix.patch added

comment:1 by jef, 14 years ago

Resolution: fixed
Status: newclosed

fixed in r13047.

Note: See TracTickets for help on using tickets.