Skip to content

Commit

Permalink
[GRASS] new mapset: re-enable set extent button if canvas extent is v…
Browse files Browse the repository at this point in the history
…alid
  • Loading branch information
blazek committed Feb 22, 2016
1 parent ed38d5d commit 81a1f63
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/plugins/grass/qgsgrassnewmapset.cpp
Expand Up @@ -572,10 +572,7 @@ void QgsGrassNewMapset::setRegionPage()

QgsRectangle ext = mIface->mapCanvas()->extent();

if ( ext.xMinimum() >= ext.xMaximum() || ext.yMinimum() >= ext.yMaximum() )
{
mCurrentRegionButton->setEnabled( false );
}
mCurrentRegionButton->setEnabled( !ext.isEmpty() );
}

checkRegion();
Expand Down

0 comments on commit 81a1f63

Please sign in to comment.