Skip to content
Permalink
Browse files
Fix potential crash
  • Loading branch information
nyalldawson committed Aug 25, 2016
1 parent 19dea08 commit d477d19
Showing 1 changed file with 5 additions and 2 deletions.
@@ -1918,8 +1918,11 @@ bool QgsVectorLayer::writeStyle( QDomNode &node, QDomDocument &doc, QString &err

if ( hasGeometryType() )
{
QDomElement rendererElement = mRenderer->save( doc );
node.appendChild( rendererElement );
if ( mRenderer )
{
QDomElement rendererElement = mRenderer->save( doc );
node.appendChild( rendererElement );
}

if ( mLabeling )
{

0 comments on commit d477d19

Please sign in to comment.