mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Fix potential crash
This commit is contained in:
parent
19dea08cf1
commit
d477d19ec8
@ -1917,9 +1917,12 @@ bool QgsVectorLayer::writeStyle( QDomNode &node, QDomDocument &doc, QString &err
|
||||
emit writeCustomSymbology( mapLayerNode, doc, errorMessage );
|
||||
|
||||
if ( hasGeometryType() )
|
||||
{
|
||||
if ( mRenderer )
|
||||
{
|
||||
QDomElement rendererElement = mRenderer->save( doc );
|
||||
node.appendChild( rendererElement );
|
||||
}
|
||||
|
||||
if ( mLabeling )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user