Skip to content

Commit

Permalink
Add missing cast for QgsProcessingParameterDateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 25, 2020
1 parent bb93dbc commit 3921af8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -195,6 +195,8 @@ their acceptable ranges, defaults, etc.
sipType = sipType_QgsProcessingParameterCoordinateOperation;
else if ( sipCpp->type() == QgsProcessingParameterMapTheme::typeName() )
sipType = sipType_QgsProcessingParameterMapTheme;
else if ( sipCpp->type() == QgsProcessingParameterDateTime::typeName() )
sipType = sipType_QgsProcessingParameterDateTime;
else
sipType = nullptr;
%End
Expand Down
2 changes: 2 additions & 0 deletions src/core/processing/qgsprocessingparameters.h
Expand Up @@ -272,6 +272,8 @@ class CORE_EXPORT QgsProcessingParameterDefinition
sipType = sipType_QgsProcessingParameterCoordinateOperation;
else if ( sipCpp->type() == QgsProcessingParameterMapTheme::typeName() )
sipType = sipType_QgsProcessingParameterMapTheme;
else if ( sipCpp->type() == QgsProcessingParameterDateTime::typeName() )
sipType = sipType_QgsProcessingParameterDateTime;
else
sipType = nullptr;
SIP_END
Expand Down

0 comments on commit 3921af8

Please sign in to comment.