[GRASS-SVN] r59905 - grass/branches/releasebranch_7_0/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 23 07:49:59 PDT 2014


Author: annakrat
Date: 2014-04-23 07:49:58 -0700 (Wed, 23 Apr 2014)
New Revision: 59905

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/lmgr/frame.py
Log:
wxGUI: fix encoding error when removing layer with opacity #2260 (merge from trunk, r59904)

Modified: grass/branches/releasebranch_7_0/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/lmgr/frame.py	2014-04-23 14:48:29 UTC (rev 59904)
+++ grass/branches/releasebranch_7_0/gui/wxpython/lmgr/frame.py	2014-04-23 14:49:58 UTC (rev 59905)
@@ -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