瀏覽代碼

wxGUI/wms: fix finding named region

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61485 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 年之前
父節點
當前提交
c2006bb0c0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/web_services/dialogs.py

+ 1 - 1
gui/wxpython/web_services/dialogs.py

@@ -968,7 +968,7 @@ class SaveWMSLayerDialog(wx.Dialog):
             reg_mapset = reg_spl[1]
 
         if self.region_types['named'].GetValue():
-            if not grass.find_file(reg_spl[0], 'region', reg_mapset)['fullname']:
+            if not grass.find_file(reg_spl[0], 'windows', reg_mapset)['fullname']:
                 msg = _('Region <%s> does not exist.' % self.params['region'].GetValue())
                 GWarning(parent=self,
                          message=msg)