Skip to content

Commit

Permalink
Fix QgsRasterInterface bindings again (fixes PyQgsRasterFileWriter test)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Oct 23, 2014
1 parent 691f4a2 commit aeb9d93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/core/raster/qgsrasterinterface.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit aeb9d93

Please sign in to comment.