Browse Source

Fix for hidden overlay option windows on Mac. Also fix to clear display after measurement. Replace grassenv with grass.gisenv().

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35152 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 16 years ago
parent
commit
2e655f6fbd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gui/wxpython/gui_modules/mapdisp.py

+ 2 - 1
gui/wxpython/gui_modules/mapdisp.py

@@ -66,6 +66,7 @@ import profile
 import globalvar
 import utils
 import gdialogs
+import grass
 from vdigit import VDigitCategoryDialog as VDigitCategoryDialog
 from vdigit import VDigitZBulkDialog    as VDigitZBulkDialog
 from vdigit import VDigitDuplicatesDialog as VDigitDuplicatesDialog
@@ -4091,7 +4092,7 @@ if __name__ == "__main__":
     gm_map = MapApp(0)
     # set title
     gm_map.mapFrm.SetTitle ("GRASS GIS - Map Display: " + title + " - Location: " + \
-                                grassenv.GetGRASSVariable("LOCATION_NAME"))
+                                grass.gisenv()['LOCATION_NAME'])
     gm_map.MainLoop()
 
     os.remove(cmdfilename)