Skip to content
Permalink
Browse files
fix crash (fixes #46002)
(cherry-picked from 4690ed0)
  • Loading branch information
jef-n committed Nov 11, 2021
1 parent 26c0830 commit 11ff1fabf4b47a025fb5bfe7025f56831fb369be
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layout/qgslayoututils.cpp
@@ -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();

0 comments on commit 11ff1fa

Please sign in to comment.