[GRASS-SVN] r59906 - grass/branches/releasebranch_6_4/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 23 07:53:28 PDT 2014


Author: annakrat
Date: 2014-04-23 07:53:28 -0700 (Wed, 23 Apr 2014)
New Revision: 59906

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

Modified: grass/branches/releasebranch_6_4/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/lmgr/frame.py	2014-04-23 14:49:58 UTC (rev 59905)
+++ grass/branches/releasebranch_6_4/gui/wxpython/lmgr/frame.py	2014-04-23 14:53:28 UTC (rev 59906)
@@ -1718,8 +1718,8 @@
         if UserSettings.Get(group = 'manager', key = 'askOnRemoveLayer', subkey = 'enabled'):
             layerName = ''
             for item in self.curr_page.maptree.GetSelections():
-                name = str(self.curr_page.maptree.GetItemText(item))
-                idx = name.find('(opacity')
+                name = self.curr_page.maptree.GetItemText(item)
+                idx = name.find('(' + _('opacity:'))
                 if idx > -1:
                     layerName += '<' + name[:idx].strip(' ') + '>,\n'
                 else:



More information about the grass-commit mailing list