Skip to content

Commit 81a1f63

Browse files
committedFeb 22, 2016
[GRASS] new mapset: re-enable set extent button if canvas extent is valid
1 parent ed38d5d commit 81a1f63

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎src/plugins/grass/qgsgrassnewmapset.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -572,10 +572,7 @@ void QgsGrassNewMapset::setRegionPage()
572572

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

575-
if ( ext.xMinimum() >= ext.xMaximum() || ext.yMinimum() >= ext.yMaximum() )
576-
{
577-
mCurrentRegionButton->setEnabled( false );
578-
}
575+
mCurrentRegionButton->setEnabled( !ext.isEmpty() );
579576
}
580577

581578
checkRegion();

0 commit comments

Comments
 (0)
Please sign in to comment.