Skip to content

Commit 5cc5ffc

Browse files
committed
fix composer picture test on windows
1 parent d429f19 commit 5cc5ffc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/src/core/testqgscomposerpicture.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,7 @@ void TestQgsComposerPicture::pictureExpression()
359359
//test picture source via expression
360360
mComposition->addComposerPicture( mComposerPicture );
361361

362-
QString expr = QString( "'" ) + QString( TEST_DATA_DIR ) + QDir::separator()
363-
+ QString( "' || 'sample_svg.svg'" );
362+
QString expr = QString( "'%1' || '/sample_svg.svg'" ).arg( TEST_DATA_DIR );
364363
mComposerPicture->setPictureExpression( expr );
365364
mComposerPicture->setUsePictureExpression( true );
366365

0 commit comments

Comments
 (0)