Skip to content

Commit

Permalink
Merge pull request #33739 from vcloarec/master
Browse files Browse the repository at this point in the history
fix QgsColorRampShader assignment operator
  • Loading branch information
m-kuhn committed Jan 12, 2020
2 parents 4b39891 + 32f305e commit 40b102f
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 40b102f

Please sign in to comment.