Skip to content

Commit 47f0e61

Browse files
author
wonder
committed
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
1 parent b583b2e commit 47f0e61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/raster/qgsrastershader.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ bool QgsRasterShader::shade( double theRedValue, double theGreenValue, double th
8282
void QgsRasterShader::setRasterShaderFunction( QgsRasterShaderFunction* theFunction )
8383
{
8484
QgsDebugMsg( "called." );
85+
86+
if ( mRasterShaderFunction == theFunction )
87+
return;
8588

8689
if ( 0 != theFunction )
8790
{

0 commit comments

Comments
 (0)