Skip to content
Permalink
Browse files
Make sure not to delete the shader function if it is the same.
git-svn-id: http://svn.osgeo.org/qgis/trunk@14046 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Aug 10, 2010
1 parent 8824579 commit 98b0b3b3465793dd92bcc64d4dc0bf400011c348
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/raster/qgsrastershader.cpp
@@ -82,6 +82,9 @@ bool QgsRasterShader::shade( double theRedValue, double theGreenValue, double th
void QgsRasterShader::setRasterShaderFunction( QgsRasterShaderFunction* theFunction )
{
QgsDebugMsg( "called." );

if ( mRasterShaderFunction == theFunction )
return;

if ( 0 != theFunction )
{

0 comments on commit 98b0b3b

Please sign in to comment.