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 m-kuhn committed Dec 27, 2021
1 parent 7a49d9b commit c8985a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/processing/qgsprocessingparameters.cpp
Expand Up @@ -3435,7 +3435,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 @@ -3446,7 +3446,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 c8985a5

Please sign in to comment.