Skip to content

Commit

Permalink
Fix missing sip cast for QgsHillshadeRenderer
Browse files Browse the repository at this point in the history
(cherry-picked from 8cf586)
  • Loading branch information
nyalldawson committed Apr 9, 2017
1 parent 5f369b0 commit 248d8c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/core/raster/qgsrasterinterface.sip
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class QgsRasterInterface
#include <qgsrasterresamplefilter.h>

// QgsRasterRenderer subclasses
#include <qgshillshaderenderer.h>
#include <qgsmultibandcolorrenderer.h>
#include <qgspalettedrasterrenderer.h>
#include <qgssinglebandcolordatarenderer.h>
Expand All @@ -80,7 +81,9 @@ class QgsRasterInterface
sipType = sipType_QgsRasterProjector;
else if (dynamic_cast<QgsRasterRenderer*>(sipCpp))
{
if ( dynamic_cast<QgsMultiBandColorRenderer*>(sipCpp))
if ( dynamic_cast<QgsHillshadeRenderer*>(sipCpp))
sipType = sipType_QgsHillshadeRenderer;
else if ( dynamic_cast<QgsMultiBandColorRenderer*>(sipCpp))
sipType = sipType_QgsMultiBandColorRenderer;
else if (dynamic_cast<QgsPalettedRasterRenderer*>(sipCpp))
sipType = sipType_QgsPalettedRasterRenderer;
Expand Down

0 comments on commit 248d8c9

Please sign in to comment.