[GRASS-SVN] r39522 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 14 07:58:52 EDT 2009


Author: martinl
Date: 2009-10-14 07:58:52 -0400 (Wed, 14 Oct 2009)
New Revision: 39522

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
Log:
wxGUI: fix list of display drivers


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py	2009-10-14 02:12:18 UTC (rev 39521)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py	2009-10-14 11:58:52 UTC (rev 39522)
@@ -1046,10 +1046,11 @@
         if 'cairo' not in listOfDrivers:
             for line in gcmd.RunCommand('d.mon',
                                         flags = 'l',
-                                        read = True):
+                                        read = True).splitlines():
                 if 'cairo' in line:
                     listOfDrivers.append('cairo')
                     break
+        
         driver = wx.Choice(parent=panel, id=wx.ID_ANY, size=(150, -1),
                            choices=listOfDrivers,
                            name="GetStringSelection")



More information about the grass-commit mailing list