We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 691f4a2 commit aeb9d93Copy full SHA for aeb9d93
python/core/raster/qgsrasterinterface.sip
@@ -31,7 +31,12 @@ class QgsRasterInterface
31
else if (dynamic_cast<QgsHueSaturationFilter*>(sipCpp))
32
sipClass = sipClass_QgsHueSaturationFilter;
33
else if (dynamic_cast<QgsRasterDataProvider*>(sipCpp))
34
+ {
35
sipClass = sipClass_QgsRasterDataProvider;
36
+ // use static cast because QgsRasterDataProvider has multiple inheritance
37
+ // and we would end up with bad pointer otherwise!
38
+ *sipCppRet = static_cast<QgsRasterDataProvider*>(sipCpp);
39
+ }
40
else if (dynamic_cast<QgsRasterNuller*>(sipCpp))
41
sipClass = sipClass_QgsRasterNuller;
42
else if (dynamic_cast<QgsRasterProjector*>(sipCpp))
0 commit comments