瀏覽代碼

wxGUI: ignore last \n
(merge from devbr6, https://trac.osgeo.org/grass/changeset/35210)


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

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

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

@@ -486,7 +486,8 @@ class TableSelect(wx.ComboBox):
         if tableCmd and \
                 tableCmd.returncode == 0:
             for table in tableCmd.ReadStdOutput():
-                items.append(table)
+                if len(table) > 0:
+                    items.append(table)
             
         self.SetItems(items)
         self.SetValue('')