Skip to content
Permalink
Browse files
fix #5000
  • Loading branch information
jef-n committed Feb 24, 2012
1 parent 16310ce commit 0ed1df83cc4fd65b1dbe9ec8f13b3abc4b42118c
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/core/qgsvectorlayer.cpp
@@ -1304,7 +1304,8 @@ void QgsVectorLayer::setRenderer( QgsRenderer *r )

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

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

0 comments on commit 0ed1df8

Please sign in to comment.