Skip to content
Permalink
Browse files

Fix potential crash

  • Loading branch information
nyalldawson committed Aug 29, 2016
1 parent 8e19f72 commit f23b77808733e6e411cddfec1ad2fa7fb10bfd18
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/core/qgsvectorlayer.cpp
@@ -1923,8 +1923,11 @@ bool QgsVectorLayer::writeSymbology( QDomNode& node, QDomDocument& doc, QString&

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 f23b778

Please sign in to comment.
You can’t perform that action at this time.