[GRASS-SVN] r59904 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 23 07:48:30 PDT 2014


Author: annakrat
Date: 2014-04-23 07:48:29 -0700 (Wed, 23 Apr 2014)
New Revision: 59904

Modified:
   grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI: fix encoding error when removing layer with opacity #2260

Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py	2014-04-22 20:12:46 UTC (rev 59903)
+++ grass/trunk/gui/wxpython/lmgr/frame.py	2014-04-23 14:48:29 UTC (rev 59904)
@@ -2047,8 +2047,8 @@
         if UserSettings.Get(group = 'manager', key = 'askOnRemoveLayer', subkey = 'enabled'):
             layerName = ''
             for item in self.GetLayerTree().GetSelections():
-                name = str(self.GetLayerTree().GetItemText(item))
-                idx = name.find('(opacity')
+                name = self.GetLayerTree().GetItemText(item)
+                idx = name.find('(' + _('opacity:'))
                 if idx > -1:
                     layerName += '<' + name[:idx].strip(' ') + '>,\n'
                 else:



More information about the grass-commit mailing list