Skip to content
Permalink
Browse files

Fix sip subclassing of metadata subclasses

  • Loading branch information
nyalldawson committed Mar 19, 2018
1 parent 016f228 commit accdc23e0b03c49c05b58ed16a27474ba33bf79f
@@ -43,7 +43,7 @@ using QgsNativeMetadataValidator.
%ConvertToSubClassCode
if ( dynamic_cast< QgsLayerMetadata * >( sipCpp ) != NULL )
sipType = sipType_QgsLayerMetadata;
else if ( dynamic_cast< QgsLayerMetadata * >( sipCpp ) != NULL )
else if ( dynamic_cast< QgsProjectMetadata * >( sipCpp ) != NULL )
sipType = sipType_QgsProjectMetadata;
else
sipType = NULL;
@@ -57,7 +57,7 @@ class CORE_EXPORT QgsAbstractMetadataBase
SIP_CONVERT_TO_SUBCLASS_CODE
if ( dynamic_cast< QgsLayerMetadata * >( sipCpp ) != NULL )
sipType = sipType_QgsLayerMetadata;
else if ( dynamic_cast< QgsLayerMetadata * >( sipCpp ) != NULL )
else if ( dynamic_cast< QgsProjectMetadata * >( sipCpp ) != NULL )
sipType = sipType_QgsProjectMetadata;
else
sipType = NULL;

0 comments on commit accdc23

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