Ticket #3866 (closed defect: fixed)
MapScript Seg Fault with class->createLegendIcon
|Reported by:||worthlutz||Owned by:||dmorissette|
Calling class->createLegendIcon with a layer with a hatch symbol and OPACITY or TRANSPARENCY causes a Segmentation Fault.
The attached files are a test case for this error. To create the error remove the comment character "#" from the OPACITY or TRANSPARENCY in the mapfile for "test_layer_1". This caused the Segmentation Fault. OPACITY works for the solid fill layer, "test_layer_2"
I am using version 6.0 rc2 from ubuntugis-testing repository.
I have not yet tested if OPACITY works for hatch with a regular map draw as it has taken me a while to find this problem as the code for the legend icon is embedded in my application which just crashes. I had to extract the code and then go through layers to find the offending item.