Skip to content

Commit eb5627c

Browse files
committed
[composer] Fix crash with expression driven picture items
1 parent f194822 commit eb5627c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/composer/qgscomposerpicture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ void QgsComposerPicture::loadPicture( const QFile& file )
401401
{
402402
recalculateSize();
403403
}
404-
else if ( !( file.fileName().isEmpty() ) || ( mUseSourceExpression && mPictureExpr->hasEvalError() ) )
404+
else if ( !( file.fileName().isEmpty() ) || ( mUseSourceExpression && mPictureExpr && mPictureExpr->hasEvalError() ) )
405405
{
406406
//trying to load an invalid file or bad expression, show cross picture
407407
mMode = SVG;

0 commit comments

Comments
 (0)