Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix crash (fixes #46002)
(cherry-picked from 4690ed0)
  • Loading branch information
jef-n committed Nov 11, 2021
1 parent 26c0830 commit 11ff1fa
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 11ff1fa

Please sign in to comment.