Bug report #2543

Qgis crashes in QgsMapCanvas::setLayerSet

Added by audun - about 13 years ago. Updated about 13 years ago.

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


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([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 about 13 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 about 13 years ago

fix #2543

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


#1 Updated by Jürgen Fischer about 13 years ago

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

fixed in 3b1e66b8 (SVN r13048).

Also available in: Atom PDF