mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-08 00:02:35 -05:00
[composer] Fix crash with expression driven picture items
This commit is contained in:
parent
f194822b95
commit
eb5627c73b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user