[QGIS Commit] r15759 - trunk/qgis/src/plugins/grass

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Apr 18 11:53:56 EDT 2011


Author: rblazek
Date: 2011-04-18 08:53:55 -0700 (Mon, 18 Apr 2011)
New Revision: 15759

Modified:
   trunk/qgis/src/plugins/grass/qgsgrassplugin.cpp
Log:
GRASS region another bug fix

Modified: trunk/qgis/src/plugins/grass/qgsgrassplugin.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassplugin.cpp	2011-04-18 14:48:33 UTC (rev 15758)
+++ trunk/qgis/src/plugins/grass/qgsgrassplugin.cpp	2011-04-18 15:53:55 UTC (rev 15759)
@@ -589,6 +589,7 @@
 // QgsDebugMsg("entered.");
 
   mRegionBand->reset();
+  if ( !mRegionAction->isChecked() ) { return; }
 
   // Display region of current mapset if in active mode
   if ( !QgsGrass::activeMode() ) return;
@@ -641,10 +642,7 @@
 {
 // QgsDebugMsg("entered.");
 
-  if ( mRegionAction->isChecked() )
-  {
-    displayRegion();
-  }
+  displayRegion();
 }
 
 void QgsGrassPlugin::changeRegion( void )



More information about the QGIS-commit mailing list