mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-24 00:05:18 -05:00
Fix QgsRasterInterface bindings again (fixes PyQgsRasterFileWriter test)
This commit is contained in:
parent
691f4a2858
commit
aeb9d934ed
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user