Skip to content
Permalink
Browse files
fix crash
  • Loading branch information
jef-n committed Nov 11, 2021
1 parent 528156e commit 4690ed07f0a1c143f0c9c275a939d1e2ffb05f8c
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 4690ed0

Please sign in to comment.