Просмотр исходного кода

wxGUI: fix setting non-ascii display name

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74106 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 6 лет назад
Родитель
Сommit
fdfc51893a
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      gui/wxpython/lmgr/frame.py
  2. 1 1
      gui/wxpython/lmgr/layertree.py
  3. 1 1
      gui/wxpython/mapdisp/frame.py

+ 1 - 1
gui/wxpython/lmgr/frame.py

@@ -1117,7 +1117,7 @@ class GMFrame(wx.Frame):
             # renamed (it just uses the numbers)
             dispId = 1
             for display in self.GetMapDisplay(onlyCurrent=False):
-                display.SetTitleWithName(dispId)  # TODO: signal ?
+                display.SetTitleWithName(str(dispId))  # TODO: signal ?
                 dispId += 1
 
     def OnChangeCWD(self, event=None, cmd=None):

+ 1 - 1
gui/wxpython/lmgr/layertree.py

@@ -204,7 +204,7 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
 
         # here (with initial auto-generated names) we use just the
         # number, not the whole name for simplicity
-        self.mapdisplay.SetTitleWithName(self.displayIndex + 1)
+        self.mapdisplay.SetTitleWithName(str(self.displayIndex + 1))
 
         # show new display
         if showMapDisplay is True:

+ 1 - 1
gui/wxpython/mapdisp/frame.py

@@ -257,7 +257,7 @@ class MapFrame(SingleMapFrame):
         """
         gisenv = grass.gisenv()
         title = _("GRASS GIS Map Display: %(name)s - %(loc)s/%(mapset)s") % {
-            'name': str(name),
+            'name': name,
             'loc': gisenv["LOCATION_NAME"],
             'mapset': gisenv["MAPSET"]}