Bug report #3255
Access composer items in Python causes segfault
|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|
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.
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.
#1 Updated by Martin Dobias over 12 years ago
- Resolution set to fixed
- Status changed from Open to Closed