mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
repaint changed region
git-svn-id: http://svn.osgeo.org/qgis/trunk@3124 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
f241d88abd
commit
f0e56d8fc7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user