Skip to content

Commit

Permalink
invert logic
Browse files Browse the repository at this point in the history
  • Loading branch information
roya0045 authored and nyalldawson committed Mar 23, 2020
1 parent 05ffd2d commit e1b5fa3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/layout/qgslayoutdesignerdialog.cpp
Expand Up @@ -2651,7 +2651,7 @@ void QgsLayoutDesignerDialog::exportAtlasToRaster()
if ( !printAtlas || !printAtlas->enabled() )
return;

if ( printAtlas->coverageLayer() )
if ( !printAtlas->coverageLayer() )
{
QMessageBox::warning( this, tr( "Export Atlas as Image" ),
tr( "Error: No coverage layer is set." ),
Expand Down Expand Up @@ -2832,7 +2832,7 @@ void QgsLayoutDesignerDialog::exportAtlasToSvg()
if ( !printAtlas || !printAtlas->enabled() )
return;

if ( printAtlas->coverageLayer() )
if ( !printAtlas->coverageLayer() )
{
QMessageBox::warning( this, tr( "Export Atlas as Image" ),
tr( "Error: No coverage layer is set." ),
Expand Down Expand Up @@ -3009,7 +3009,7 @@ void QgsLayoutDesignerDialog::exportAtlasToPdf()
if ( !printAtlas || !printAtlas->enabled() )
return;

if ( printAtlas->coverageLayer() )
if ( !printAtlas->coverageLayer() )
{
QMessageBox::warning( this, tr( "Export Atlas as Image" ),
tr( "Error: No coverage layer is set." ),
Expand Down

0 comments on commit e1b5fa3

Please sign in to comment.