Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 11, 2021
1 parent 528156e commit 4690ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoututils.cpp
Expand Up @@ -512,7 +512,7 @@ double QgsLayoutUtils::mmToPoints( const double mmSize )

QVector< double > QgsLayoutUtils::predefinedScales( const QgsLayout *layout )
{
QgsProject *lProject = layout->project();
QgsProject *lProject = layout ? layout->project() : nullptr;
QVector< double > mapScales;
if ( lProject )
mapScales = lProject->viewSettings()->mapScales();
Expand Down

0 comments on commit 4690ed0

Please sign in to comment.