#1745 closed patch (fixed)
QGis crashes dragging a Legend Layer File over a Legend Layer File Group
Reported by: | gcarrillo | Owned by: | mhugent |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | Version 1.2.0 |
Component: | Map Legend | Version: | Trunk |
Keywords: | Drag Legend Layer File Group | Cc: | pcav |
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
QGis crashes dragging a Legend Layer File over a Legend Layer File Group. It happen over center of the item Layer File Group because the Legend Layer File pass to the same level as symbology on the Legend Layer, below center of the Layer File Group the drag works fine. The drag is not allowed to another position.
Attachments (3)
Change History (14)
by , 15 years ago
Attachment: | patch_for_bug_1745.txt added |
---|
comment:1 by , 15 years ago
Type: | bug → patch |
---|
by , 15 years ago
Attachment: | screenshot_bug_1745.png added |
---|
This is a screenshot for show the bad behavior in the legend.
comment:2 by , 15 years ago
Cc: | added |
---|---|
Milestone: | → Version 1.2.0 |
Seems to me that this patch has not been applied yet.
Qgis 1.2 trunk under linux crashes (segfault) while qgis 1.2 under windows xp returns "access violation - no RTTI data!" but doesn't crash and remain usable.
comment:3 by , 15 years ago
Owner: | changed from | to
---|
comment:4 by , 15 years ago
Looking at the patch it seems to me that it would be better to handle it in a generic way in qgslegend.cpp (not only for LEGEND_LAYER_FILE and LEGEND_LAYER_FILE_GROUP). I'm nearly about to rush to the train station for holidays. I'm coming back to this ticket in about a week.
Regards, Marco
by , 15 years ago
Attachment: | legendpatch.diff added |
---|
comment:6 by , 15 years ago
Hi
I don't have the crash on my system, only the move of the legend layer file to the symbology section. 'legendpatch.diff' fixes that in a generic way (only using the return value of dest->accept(), without explicitely mention the concrete classes).
Could you test if this also works for you and if it fixes the crash on your system or not?
Thanks, Marco
comment:7 by , 15 years ago
Hi,
It is pretty easy to reproduce the crash (rev. 11186), see this
http://www.faunalia.pt/downloads/qgis_legend_crash.mpeg
Now I'll compile the latest revision and try the patch.
comment:9 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Ok, so I'm closing this ticket.
Patch for bug #1745