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/qgis@14046 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Aug 10, 2010
1 parent b583b2e commit 47f0e617c0875f1329ac2558be21f7fcd63e69af
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 47f0e61

Please sign in to comment.