Bug report #2543

Qgis crashes in QgsMapCanvas::setLayerSet

Added by audun - over 10 years ago. Updated over 10 years ago.

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

fix.patch Magnifier (430 Bytes) audun -, 2010-03-11 04:41 AM

Associated revisions

Revision 01dcd47e
Added by Jürgen Fischer over 10 years ago

fix #2543

git-svn-id: http://svn.osgeo.org/qgis/trunk/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision 3b1e66b8
Added by Jürgen Fischer over 10 years ago

fix #2543

git-svn-id: http://svn.osgeo.org/qgis/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

History

#1 Updated by Jürgen Fischer over 10 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

fixed in 3b1e66b8 (SVN r13048).

Also available in: Atom PDF