Opened 14 years ago

Closed 14 years ago

#3255 closed bug (fixed)

Access composer items in Python causes segfault

Reported by: NathanW Owned by: borysiasty
Priority: critical: causes crash or data corruption Milestone: Version 1.7.0
Component: Python plugins and bindings Version: Trunk
Keywords: composer Cc:
Must Fix for Release: Yes Platform: All
Platform Version: Awaiting user input: no

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()[0]
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.

Change History (1)

comment:1 by wonder, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in r14766

Note: See TracTickets for help on using tickets.