Hi guys, <br>while I wrote a patch for QgsLegend, I found an issue related with <br>segmentation faults.<br><br>Here the bugged code:<br><br>QTreeWidgetItem* destItem = mDropTarget;<br>...<br>QgsLegendItem* dest = dynamic_cast<QgsLegendItem *>( destItem );<br>
<br>If mDropTarget is NULL QGis crashes with segfault. <br>In this case the problem is the dynamic_cast, used without make a null test on destItem. <br><br>May some other crashes be due to a code like this??<br><br>Cheers.<br clear="all">
<br>-- <br>Giuseppe Sucameli<br>