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

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

if ( mLabeling )
{

0 comments on commit 38f4f08

Please sign in to comment.