Skip to content

Commit

Permalink
[composer] Fix crash with expression driven picture items
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 16, 2014
1 parent f194822 commit eb5627c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/composer/qgscomposerpicture.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit eb5627c

Please sign in to comment.