Merge pull request #33739 from vcloarec/master

fix QgsColorRampShader assignment operator
This commit is contained in:
Matthias Kuhn 2020-01-12 18:01:30 +01:00 committed by GitHub
commit 40b102fcce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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