[QGIS Commit] r14046 - trunk/qgis/src/core/raster

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Aug 10 16:26:08 EDT 2010


Author: wonder
Date: 2010-08-10 20:26:07 +0000 (Tue, 10 Aug 2010)
New Revision: 14046

Modified:
   trunk/qgis/src/core/raster/qgsrastershader.cpp
Log:
Make sure not to delete the shader function if it is the same.


Modified: trunk/qgis/src/core/raster/qgsrastershader.cpp
===================================================================
--- trunk/qgis/src/core/raster/qgsrastershader.cpp	2010-08-10 20:25:30 UTC (rev 14045)
+++ trunk/qgis/src/core/raster/qgsrastershader.cpp	2010-08-10 20:26:07 UTC (rev 14046)
@@ -82,6 +82,9 @@
 void QgsRasterShader::setRasterShaderFunction( QgsRasterShaderFunction* theFunction )
 {
   QgsDebugMsg( "called." );
+  
+  if ( mRasterShaderFunction == theFunction )
+    return;
 
   if ( 0 != theFunction )
   {



More information about the QGIS-commit mailing list