Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix expressions
  • Loading branch information
3nids committed May 11, 2021
1 parent f4354bc commit cb69fc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/core/testqgslayoutpicture.cpp
Expand Up @@ -420,9 +420,9 @@ void TestQgsLayoutPicture::dynamicSvgParameters()
mPicture->setPicturePath( mDynamicSvgParamsImage );

QMap<QString, QgsProperty> parametersProperties;
parametersProperties.insert( QStringLiteral( "text1" ), QgsProperty::fromExpression( QStringLiteral( "green?" ) ) );
parametersProperties.insert( QStringLiteral( "text2" ), QgsProperty::fromExpression( QStringLiteral( "supergreen" ) ) );
parametersProperties.insert( QStringLiteral( "align" ), QgsProperty::fromExpression( QStringLiteral( "middle" ) ) );
parametersProperties.insert( QStringLiteral( "text1" ), QgsProperty::fromExpression( QStringLiteral( "'green?'" ) ) );
parametersProperties.insert( QStringLiteral( "text2" ), QgsProperty::fromExpression( QStringLiteral( "'supergreen'" ) ) );
parametersProperties.insert( QStringLiteral( "align" ), QgsProperty::fromExpression( QStringLiteral( "'middle'" ) ) );

mPicture->setSvgDynamicParameters( parametersProperties );

Expand Down

0 comments on commit cb69fc9

Please sign in to comment.