Skip to content
Permalink
Browse files

Fix crash when exporting reports

  • Loading branch information
nyalldawson committed Feb 25, 2019
1 parent 403a2e3 commit 50f3a32f4ebfc0951eb3e4cb9fb63769392c72ba
Showing with 10 additions and 3 deletions.
  1. +10 −3 src/app/layout/qgslayoutdesignerdialog.cpp
@@ -4475,9 +4475,16 @@ void QgsLayoutDesignerDialog::setLastExportPath( const QString &path ) const

bool QgsLayoutDesignerDialog::checkBeforeExport()
{
QgsLayoutValidityCheckContext context( mLayout );
return QgsValidityCheckResultsWidget::runChecks( QgsAbstractValidityCheck::TypeLayoutCheck, &context, tr( "Checking Layout" ),
tr( "The layout generated the following warnings. Please review and address these before proceeding with the layout export." ), this );
if ( mLayout )
{
QgsLayoutValidityCheckContext context( mLayout );
return QgsValidityCheckResultsWidget::runChecks( QgsAbstractValidityCheck::TypeLayoutCheck, &context, tr( "Checking Layout" ),
tr( "The layout generated the following warnings. Please review and address these before proceeding with the layout export." ), this );
}
else
{
return true;
}
}

void QgsLayoutDesignerDialog::updateWindowTitle()

0 comments on commit 50f3a32

Please sign in to comment.
You can’t perform that action at this time.