浏览代码

fix https://trac.osgeo.org/grass/changeset/67272 in better way

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67273 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 年之前
父节点
当前提交
547571f663
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      gui/wxpython/gui_core/forms.py

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

@@ -2259,7 +2259,9 @@ class CmdPanel(wx.Panel):
         else:
             if isinstance(me, wx.SpinCtrl):
                 porf['value'] = str(me.GetValue())
-            elif isinstance(me, wx.Choice) and sys.platform != 'win32':
+            elif isinstance(me, wx.ComboBox):
+                porf['value'] = me.GetValue()
+            elif isinstance(me, wx.Choice):
                 porf['value'] = me.GetStringSelection()                    
             else:
                 porf['value'] = me.GetValue()