瀏覽代碼

wxGUI/modeler: fix LoadMapLayers()
(merge https://trac.osgeo.org/grass/changeset/48776 from devbr6)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48777 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 13 年之前
父節點
當前提交
823da52210
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_modules/gdialogs.py

+ 1 - 1
gui/wxpython/gui_modules/gdialogs.py

@@ -916,7 +916,7 @@ class MapLayersDialog(wx.Dialog):
         self.bodySizer = self._createDialogBody()
         # update list of layer to be loaded
         self.map_layers = [] # list of map layers (full list type/mapset)
-        self.LoadMapLayers(self.layerType.GetStringSelection()[:4],
+        self.LoadMapLayers(self.GetLayerType(cmd = True),
                            self.mapset.GetStringSelection())
         
         self.fullyQualified = wx.CheckBox(parent = self, id = wx.ID_ANY,