mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Merge pull request #39135 from elpaso/bugfix-gh39086-empty-report-crash
Fix crash when exporting empty report
This commit is contained in:
commit
8cd40aeebf
@ -274,8 +274,11 @@ class QgsAtlasExportGuard
|
||||
mDialog->mIsExportingAtlas = false;
|
||||
|
||||
// need to update the GUI to reflect the final atlas feature
|
||||
if ( mDialog->currentLayout() )
|
||||
{
|
||||
mDialog->atlasFeatureChanged( mDialog->currentLayout()->reportContext().feature() );
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
QgsLayoutDesignerDialog *mDialog = nullptr;
|
||||
@ -4655,6 +4658,7 @@ void QgsLayoutDesignerDialog::toggleActions( bool layoutAvailable )
|
||||
mActionExportAsPDF->setEnabled( layoutAvailable );
|
||||
mActionExportAsSVG->setEnabled( layoutAvailable );
|
||||
mActionPrint->setEnabled( layoutAvailable );
|
||||
mActionPrintReport->setEnabled( layoutAvailable );
|
||||
mActionCut->setEnabled( layoutAvailable );
|
||||
mActionCopy->setEnabled( layoutAvailable );
|
||||
mActionPaste->setEnabled( layoutAvailable );
|
||||
|
Loading…
x
Reference in New Issue
Block a user