Ticket #2173 (closed bug: duplicate)
Crash in python console when renderer changes
| Reported by: | springmeyer | Owned by: | nobody |
|---|---|---|---|
| Priority: | critical: causes crash or data corruption | Milestone: | Version 1.4.0 |
| Component: | Symbology | Version: | Trunk |
| Keywords: | Cc: | ||
| Platform Version: | Platform: | Debian | |
| Must Fix for Release: | No | Awaiting user input: | no |
Description
To replicate:
1) Add layer 2) open python console
l = qgis.utils.iface.mapCanvas().layer(0) print l.isUsingRendererV2() ren = l.rendererV2()
3) edit symbology of layer with console open 4) type 'print ren' in console again... crash
The object no longer exists and should be returned as None rather than crashing QGIS.
Change History
Note: See
TracTickets for help on using
tickets.