[Qgis-developer] Creating a new QgsComposerHtml from Python causes segmentation fault

G. Allegri giohappy at gmail.com
Mon Jan 19 16:11:23 PST 2015


The QgsComposerHtml class behaves bad from Python.
When a new QgsComposerHtml is instantiated I get a segmentation fault and
QGIS crashes.
Something wrong happens even when one tries to obtain an existing object
from a composition:

mycomp.getComposerItemById('myhtml') -> QgsComposerFrame instance

I don't understand how a QgsComposerFrame is returned given that
QgsComposerHtml is not related to this class. It derives from
QgsComposerMultiFrame, and in case it can contains frame objects...

It happens both on 2.6 and master, both on Linux and Windows.

I've opened an issue: http://hub.qgis.org/issues/12009

giovanni

-- 
Giovanni Allegri
http://about.me/giovanniallegri
Twitter: https://twitter.com/_giohappy_
blog: http://blog.spaziogis.it
GEO+ geomatica in Italia http://bit.ly/GEOplus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150120/58370086/attachment.html>


More information about the Qgis-developer mailing list