Skip to content

Commit

Permalink
Fix hillshading renderer XML loading (fixes #15195)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jul 6, 2016
1 parent af3ad83 commit e00ba6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/raster/qgshillshaderenderer.cpp
Expand Up @@ -60,6 +60,8 @@ QgsRasterRenderer *QgsHillshadeRenderer::create( const QDomElement &elem, QgsRas
double zFactor = elem.attribute( "zfactor", "1" ).toDouble();
bool multiDirectional = elem.attribute( "multidirection", "0" ).toInt();
QgsHillshadeRenderer* r = new QgsHillshadeRenderer( input, band, azimuth , angle );
r->readXML( elem );

r->setZFactor( zFactor );
r->setMultiDirectional( multiDirectional );
return r;
Expand Down

2 comments on commit e00ba6d

@nirvn
Copy link
Contributor

@nirvn nirvn commented on e00ba6d Jul 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wonder-sk , thanks for working on this.

Situation has improved, in that the transparency panel now works. However, if I go back to the symbology tab and change any setting (say azimuth), the global transparency slider value is reset to 0.

@wonder-sk
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for testing - I see you have created a ticket for that - should be fixed now on master...

Please sign in to comment.