Hi, I noticed this statement in QgsVectorLayerProperties::saveStyleAs() method
apply(); // make sure the style to save is uptodate just after the file dialog launch. So, every time you want to export a style to a file, qgis applies it to the layer, losing precedent applied style. But if the statement is removed, qgis simply crashs :) but I didn't managed why (in QgsRendererRangeV2::symbol() method). I'm using part of saveStyleAs() (and related) code to create a qml style and save it into a postgis db. Is it so important to apply the style before saving it? Is there any way to save avoiding to apply? Thanks, Emilio Loi - [email protected]
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
