Skip to content

Commit

Permalink
fix #5000
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 24, 2012
1 parent 16310ce commit 0ed1df8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -1304,7 +1304,8 @@ void QgsVectorLayer::setRenderer( QgsRenderer *r )

if ( r != mRenderer )
{
setUsingRendererV2( false );
if ( r )
setUsingRendererV2( false );
delete mRenderer;
mRenderer = r;
}
Expand Down Expand Up @@ -4643,7 +4644,8 @@ void QgsVectorLayer::setRendererV2( QgsFeatureRendererV2 *r )

if ( r != mRendererV2 )
{
setUsingRendererV2( true );
if ( r )
setUsingRendererV2( true );
delete mRendererV2;
mRendererV2 = r;
}
Expand Down

0 comments on commit 0ed1df8

Please sign in to comment.