Skip to content

Commit

Permalink
fix QgsColorRampShader assignment operator
Browse files Browse the repository at this point in the history
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 32f305e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/raster/qgscolorrampshader.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 32f305e

Please sign in to comment.