Skip to content
Permalink
Browse files
Fix missing sip cast for QgsHillshadeRenderer
  • Loading branch information
nyalldawson committed Apr 9, 2017
1 parent bc08a79 commit 8cf5860d72e6c7d4c7345b3a880020263549a93c
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/core/raster/qgsrasterinterface.sip
@@ -55,6 +55,7 @@ class QgsRasterInterface
#include <qgsrasterresamplefilter.h>

// QgsRasterRenderer subclasses
#include <qgshillshaderenderer.h>
#include <qgsmultibandcolorrenderer.h>
#include <qgspalettedrasterrenderer.h>
#include <qgssinglebandcolordatarenderer.h>
@@ -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;

0 comments on commit 8cf5860

Please sign in to comment.