Skip to content

Commit

Permalink
Make sure not to delete the shader function if it is the same.
Browse files Browse the repository at this point in the history
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 98b0b3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/raster/qgsrastershader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 98b0b3b

Please sign in to comment.