Skip to content
Permalink
Browse files

Fix QgsRasterInterface bindings again (fixes PyQgsRasterFileWriter test)

  • Loading branch information
wonder-sk committed Oct 23, 2014
1 parent 691f4a2 commit aeb9d934ed91bcf11154aed7fc40e570f6e450ff
Showing with 5 additions and 0 deletions.
  1. +5 −0 python/core/raster/qgsrasterinterface.sip
@@ -31,7 +31,12 @@ class QgsRasterInterface
else if (dynamic_cast<QgsHueSaturationFilter*>(sipCpp))
sipClass = sipClass_QgsHueSaturationFilter;
else if (dynamic_cast<QgsRasterDataProvider*>(sipCpp))
{
sipClass = sipClass_QgsRasterDataProvider;
// use static cast because QgsRasterDataProvider has multiple inheritance
// and we would end up with bad pointer otherwise!
*sipCppRet = static_cast<QgsRasterDataProvider*>(sipCpp);
}
else if (dynamic_cast<QgsRasterNuller*>(sipCpp))
sipClass = sipClass_QgsRasterNuller;
else if (dynamic_cast<QgsRasterProjector*>(sipCpp))

0 comments on commit aeb9d93

Please sign in to comment.
You can’t perform that action at this time.