Skip to content
Permalink
Browse files
[composer] Fix crash with expression driven picture items
  • Loading branch information
nyalldawson committed May 16, 2014
1 parent f194822 commit eb5627c73b37f50e7919ec60a80a7b00c5984ae3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/composer/qgscomposerpicture.cpp
@@ -401,7 +401,7 @@ void QgsComposerPicture::loadPicture( const QFile& file )
{
recalculateSize();
}
else if ( !( file.fileName().isEmpty() ) || ( mUseSourceExpression && mPictureExpr->hasEvalError() ) )
else if ( !( file.fileName().isEmpty() ) || ( mUseSourceExpression && mPictureExpr && mPictureExpr->hasEvalError() ) )
{
//trying to load an invalid file or bad expression, show cross picture
mMode = SVG;

0 comments on commit eb5627c

Please sign in to comment.