Quellcode durchsuchen

wxGUI: fix r|v.proj functionality (see https://trac.osgeo.org/grass/changeset/65587)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65599 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa vor 9 Jahren
Ursprung
Commit
7938691ff3
1 geänderte Dateien mit 3 neuen und 6 gelöschten Zeilen
  1. 3 6
      gui/wxpython/gui_core/forms.py

+ 3 - 6
gui/wxpython/gui_core/forms.py

@@ -1177,12 +1177,8 @@ class CmdPanel(wx.Panel):
                         mapsets = None
                     if self.task.name in ('r.proj', 'v.proj') \
                             and p.get('name', '') == 'input':
-                        if self.task.name == 'r.proj':
-                            isRaster = True
-                        else:
-                            isRaster = False
                         selection = gselect.ProjSelect(parent = which_panel,
-                                                       isRaster = isRaster)
+                                                       isRaster = self.task.name == 'r.proj')
                         p['wxId'] = [ selection.GetId(), ]
                         selection.Bind(wx.EVT_COMBOBOX, self.OnSetValue)
                         selection.Bind(wx.EVT_TEXT, self.OnUpdateSelection)
@@ -1817,8 +1813,9 @@ class CmdPanel(wx.Panel):
             pLocation['wxId-bind'] = pMapset['wxId']
         
         if pLocation and pMapset and pMap:
-            pLocation['wxId-bind'] +=  pMap['wxId']
+            # pLocation['wxId-bind'] +=  pMap['wxId']
             pMapset['wxId-bind'] = pMap['wxId']
+        
         #
         # determine panel size
         #