Bug report #3255
Access composer items in Python causes segfault
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | Borys Jurgiel | ||
Category: | Python plugins | ||
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 #: | 13315 |
Description
If you try and access composer items that were created using the tools in the composer window, eg new label, scale etc QGIS crashes with a seg fault.
To reproduce:
Open composer and create label, select label, open python window and type:
comp = qgis.utils.iface.activeComposers()[0}.composition() label = comp.selectedComposerItems()r0 label.displayText() // or any other method
If the label is created using python then the above works as expected, otherwise QGIS gives a segfault.
This happens if you try and access any type of composer item in python using the above method.
History
#1 Updated by Martin Dobias almost 14 years ago
- Resolution set to fixed
- Status changed from Open to Closed
Fixed in