repaint changed region

git-svn-id: http://svn.osgeo.org/qgis/trunk@3124 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
rabla 2005-04-11 16:28:03 +00:00
parent f241d88abd
commit f0e56d8fc7

View File

@ -413,6 +413,15 @@ void QgsGrassRegion::postRender(QPainter *painter)
void QgsGrassRegion::accept()
{
// TODO: better repaint region
QSettings settings;
bool on = settings.readBoolEntry ("/qgis/grass/region/on", true );
if ( on ) {
mPlugin->switchRegion(false); // delete
}
QgsGrass::setLocation ( QgsGrass::getDefaultGisdbase(), QgsGrass::getDefaultLocation() );
G__setenv( "MAPSET", (char *) QgsGrass::getDefaultMapset().latin1() );
@ -421,6 +430,10 @@ void QgsGrassRegion::accept()
return;
}
if ( on ) {
mPlugin->switchRegion(on); // draw new
}
saveWindowLocation();
close();
delete this;