Skip to content
Permalink
Browse files

fix QgsColorRampShader assignment operator

The old assignment operator didn't do the job for the base class
  • Loading branch information
vcloarec committed Jan 12, 2020
1 parent 12c410c commit 32f305e93a0dc0a5b39cf8eeb413a479837742a9
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/raster/qgscolorrampshader.cpp
@@ -58,6 +58,7 @@ QgsColorRampShader::QgsColorRampShader( const QgsColorRampShader &other )

QgsColorRampShader &QgsColorRampShader::operator=( const QgsColorRampShader &other )
{
QgsRasterShaderFunction::operator=( other );
if ( other.sourceColorRamp() )
mSourceColorRamp.reset( other.sourceColorRamp()->clone() );
else

0 comments on commit 32f305e

Please sign in to comment.
You can’t perform that action at this time.