Skip to content

Commit

Permalink
export value as python string
Browse files Browse the repository at this point in the history
  • Loading branch information
Koyaani authored and nyalldawson committed Nov 9, 2021
1 parent 6b7d524 commit 6b03097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/processing/qgsprocessingparameters.cpp
Expand Up @@ -3597,7 +3597,7 @@ QString QgsProcessingParameterMatrix::valueAsPythonString( const QVariant &value
else if ( v2.toString().isEmpty() )
parts2 << QStringLiteral( "''" );
else
parts2 << v2.toString();
parts2 << QgsProcessingUtils::stringToPythonLiteral( v2.toString() );
}
parts << parts2.join( ',' ).prepend( '[' ).append( ']' );
}
Expand All @@ -3608,7 +3608,7 @@ QString QgsProcessingParameterMatrix::valueAsPythonString( const QVariant &value
else if ( v.toString().isEmpty() )
parts << QStringLiteral( "''" );
else
parts << v.toString();
parts << QgsProcessingUtils::stringToPythonLiteral( v.toString() );
}
}

Expand Down

0 comments on commit 6b03097

Please sign in to comment.